1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

reuse existing delete const

This commit is contained in:
Damodar Lohani 2021-07-28 15:54:29 +05:45
parent 1cac46e160
commit 474cbfb198
2 changed files with 3 additions and 6 deletions

View file

@ -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';

View file

@ -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;