mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix resourceType from 'project' to 'projects' for key queries
This commit is contained in:
@@ -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]),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user