1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

Deletes worker no longer needed for collections

This commit is contained in:
kodumbeats 2021-07-12 12:45:30 -04:00
parent 06c276d855
commit acc4bbb052
2 changed files with 0 additions and 19 deletions

View file

@ -211,12 +211,6 @@ App::delete('/v1/database/collections/:collectionId')
$dbForExternal->deleteCollection($collectionId);
// TODO@kodumbeats use worker to handle this
// $deletes
// ->setParam('type', DELETE_TYPE_DOCUMENT)
// ->setParam('document', $collection)
// ;
$events
->setParam('eventData', $response->output2($collection, Response::MODEL_COLLECTION))
;

View file

@ -52,9 +52,6 @@ class DeletesV1 extends Worker
case Database::SYSTEM_COLLECTION_USERS:
$this->deleteUser($document, $projectId);
break;
case Database::SYSTEM_COLLECTION_COLLECTIONS:
$this->deleteDocuments($document, $projectId);
break;
case Database::SYSTEM_COLLECTION_TEAMS:
$this->deleteMemberships($document, $projectId);
break;
@ -91,16 +88,6 @@ class DeletesV1 extends Worker
{
}
protected function deleteDocuments(Document $document, $projectId)
{
$collectionId = $document->getId();
// Delete Documents in the deleted collection
$this->deleteByGroup([
'$collection='.$collectionId
], $this->getProjectDB($projectId));
}
protected function deleteMemberships(Document $document, $projectId) {
// Delete Memberships
$this->deleteByGroup([