fix deleting path

This commit is contained in:
Damodar Lohani committed 2021-07-28 15:59:47 +05:45
1 parent a6d79059c6
commit 893b0626a2
1 file changed
+4 -4
+4 -4
View File
@@ -360,10 +360,10 @@ class DeletesV1 extends Worker
$this->deleteByGroup('files',[
new Query('bucketId', Query::TYPE_EQUAL, [$bucketId])
], $this->getInternalDB($projectId), function () use ($projectId, $bucketId) {
$device = new Local(APP_STORAGE_UPLOADS.'/app-'.$projectId);
$device->deletePath($device->getRoot() . DIRECTORY_SEPARATOR . $bucketId);
});
], $this->getInternalDB($projectId));
$device = new Local(APP_STORAGE_UPLOADS.'/app-'.$projectId);
$device->deletePath($device->getRoot() . DIRECTORY_SEPARATOR . $bucketId);
}
/**