1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

feat: refactor

This commit is contained in:
Christy Jacob 2022-01-28 04:25:28 +04:00
parent 700c2fff2b
commit 608eff458c

View file

@ -312,9 +312,9 @@ class DeletesV1 extends Worker
$dbForProject = $this->getProjectDB($projectId);
$storageFunctions = new Local(APP_STORAGE_FUNCTIONS . '/app-' . $projectId);
$storageBuilds = new Local(APP_STORAGE_BUILDS . '/app-' . $projectId);
$deploymentIds = [];
// Delete Deployments
$deploymentIds = [];
$this->deleteByGroup('deployments', [
new Query('functionId', Query::TYPE_EQUAL, [$document->getId()])
], $dbForProject, function (Document $document) use ($storageFunctions, &$deploymentIds) {