1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

fix deleting path

This commit is contained in:
Damodar Lohani 2021-07-28 15:59:47 +05:45
parent a6d79059c6
commit 893b0626a2

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);
}
/**