diff --git a/app/init.php b/app/init.php index 74b354c4d7..7cae96006e 100644 --- a/app/init.php +++ b/app/init.php @@ -86,6 +86,7 @@ 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 1242d7a8ab..b6fca63433 100644 --- a/app/workers/deletes.php +++ b/app/workers/deletes.php @@ -76,7 +76,12 @@ class DeletesV1 extends Worker $document = new Document($this->args['document']); $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; @@ -351,6 +356,11 @@ class DeletesV1 extends Worker Console::info("No certificate files found for {$domain}"); } } + + protected function deleteBucket(Document $document, string $projectId) + { + + } /** * @param string $projectId