mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
Merge pull request #2860 from appwrite/fix-collection-deletes
Fix delete collection using wrong ID
This commit is contained in:
commit
4597aee529
1 changed files with 1 additions and 1 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue