mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
logger moved to App::shutdown
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user