reuse existing delete const
This commit is contained in:
parent
1cac46e160
commit
474cbfb198
2 changed files with 3 additions and 6 deletions
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue