Add event backward model

This commit is contained in:
Matej Bačo committed 2022-05-17 08:22:46 +00:00
1 parent 9bf7d9bda4
commit 917faa07db
1 file changed
+6 -1
+6 -1
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;
}
}