1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

fix delete worker

This commit is contained in:
Damodar Lohani 2022-01-26 18:39:18 +05:45
parent 5090a2a440
commit 02aaa71c96

View file

@ -459,8 +459,8 @@ class DeletesV1 extends Worker
protected function deleteBucket(Document $document, string $projectId)
{
$bucketId = $document->getId();
$dbForExternal = $this->getExternalDB($projectId);
$dbForExternal->deleteCollection('bucket_' . $bucketId);
$dbForProject = $this->getProjectDB($projectId);
$dbForProject->deleteCollection('bucket_' . $bucketId);
$device = new Local(APP_STORAGE_UPLOADS.'/app-'.$projectId);