Add event backward model

This commit is contained in:
Matej Bačo 2022-05-17 08:22:46 +00:00
parent 9bf7d9bda4
commit 917faa07db

View file

@ -3,6 +3,7 @@
namespace Appwrite\Utopia\Request\Filters;
use Appwrite\Utopia\Request\Filter;
use Appwrite\Migration\Version\V13 as MigrationV13;
class V14 extends Filter
{
@ -23,7 +24,11 @@ class V14 extends Filter
private function convertEvents($content)
{
// TODO: Convert events
$migration = new MigrationV13();
$events = $content['events'] ?? [];
$content['events'] = $migration->migrateEvents($events);
return $content;
}
}