mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge pull request #2860 from appwrite/fix-collection-deletes
Fix delete collection using wrong ID
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user