Merge pull request #2860 from appwrite/fix-collection-deletes

Fix delete collection using wrong ID
This commit is contained in:
Christy Jacob
2022-03-01 13:54:49 +04:00
committed by GitHub
+1 -1
View File
@@ -129,7 +129,7 @@ class DeletesV1 extends Worker
$dbForProject = $this->getProjectDB($projectId);
$dbForProject->deleteCollection('collection_' . $collectionId);
$dbForProject->deleteCollection('collection_' . $document->getInternalId());
$this->deleteByGroup('attributes', [
new Query('collectionId', Query::TYPE_EQUAL, [$collectionId])