1
0
Fork 0
mirror of synced 2024-09-28 07:21:35 +12:00

logger moved to App::shutdown

This commit is contained in:
shimon 2022-07-07 18:16:03 +03:00
parent 6437ba8c6a
commit 0249966741

View file

@ -36,7 +36,6 @@ class DeletesV1 extends Worker
public function run(): void
{
$project = new Document($this->args['project'] ?? []);
$type = $this->args['type'] ?? '';
@ -647,13 +646,8 @@ class DeletesV1 extends Worker
protected function deleteBucket(Document $document, string $projectId)
{
$dbForProject = $this->getProjectDB($projectId);
$dbForProject->deleteCollection('bucket_' . $document->getInternalId());
$device = $this->getDevice(APP_STORAGE_UPLOADS . '/app-' . $projectId);
$device->deletePath($document->getId());
$dbForProject->deleteCollection('bucket_' . $document->getInternalId() . '_video_renditions');
$device = $this->getDevice(APP_STORAGE_VIDEO . '/app-' . $projectId);
$device = $this->getDevice(APP_STORAGE_UPLOADS . '/app-' . $projectId);
$device->deletePath($document->getId());