1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

fix deletes worker

This commit is contained in:
Damodar Lohani 2022-02-18 01:36:25 +00:00
parent 5645a003ab
commit 5eb6eeb6b8

View file

@ -458,9 +458,8 @@ class DeletesV1 extends Worker
protected function deleteBucket(Document $document, string $projectId)
{
$bucketId = $document->getId();
$dbForProject = $this->getProjectDB($projectId);
$dbForProject->deleteCollection('bucket_' . $bucketId);
$dbForProject->deleteCollection('bucket_' . $document->getInternalId());
$device = new Local(APP_STORAGE_UPLOADS.'/app-'.$projectId);
@ -483,6 +482,6 @@ class DeletesV1 extends Worker
break;
}
$device->deletePath($bucketId);
$device->deletePath($document->getId());
}
}