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
commit 4597aee529
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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])