fix deleting path
This commit is contained in:
parent
a6d79059c6
commit
893b0626a2
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue