diff --git a/app/controllers/api/migrations.php b/app/controllers/api/migrations.php index 6e85db8294..66852270f8 100644 --- a/app/controllers/api/migrations.php +++ b/app/controllers/api/migrations.php @@ -746,7 +746,7 @@ Http::get('/v1/migrations/appwrite/report') if (\in_array(Resource::TYPE_KEY, $resources)) { $report[Resource::TYPE_KEY] = $dbForPlatform->count('keys', [ - Query::equal('resourceType', ['project']), + Query::equal('resourceType', ['projects']), Query::equal('resourceInternalId', [$projectInternalId]), ]); } diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index ff6a341df9..1d7a589e08 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -618,7 +618,7 @@ class Migrations extends Action while (true) { $queries = [ - Query::equal('resourceType', ['project']), + Query::equal('resourceType', ['projects']), Query::equal('resourceInternalId', [$sourceInternalId]), Query::limit($batchSize), ];