diff --git a/app/init.php b/app/init.php index d689bba9f7..15d0bec83c 100644 --- a/app/init.php +++ b/app/init.php @@ -85,7 +85,6 @@ const DELETE_TYPE_EXECUTIONS = 'executions'; const DELETE_TYPE_AUDIT = 'audit'; const DELETE_TYPE_ABUSE = 'abuse'; const DELETE_TYPE_CERTIFICATES = 'certificates'; -const DELETE_TYPE_BUCKETS = 'buckets'; // Auth Types const APP_AUTH_TYPE_SESSION = 'Session'; const APP_AUTH_TYPE_JWT = 'JWT'; diff --git a/app/workers/deletes.php b/app/workers/deletes.php index 6dddc59895..7e615063b9 100644 --- a/app/workers/deletes.php +++ b/app/workers/deletes.php @@ -53,6 +53,9 @@ class DeletesV1 extends Worker case 'teams': $this->deleteMemberships($document, $projectId); break; + case 'buckets': + $this->deleteBucket($document, $projectId); + break; default: Console::error('No lazy delete operation available for document of type: '.$document->getCollection()); break; @@ -76,11 +79,6 @@ class DeletesV1 extends Worker $this->deleteCertificates($document); break; - case DELETE_TYPE_BUCKETS: - $bucket = new Document($this->args['document']); - $this->deleteBucket($bucket, $projectId); - break; - default: Console::error('No delete operation for type: '.$type); break;