Merge pull request #3884 from appwrite/fix-delete-function-variables

Fix: Function deletes worker
This commit is contained in:
Christy Jacob 2022-09-23 00:38:18 +05:30 committed by GitHub
commit c2d3544c55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -410,6 +410,14 @@ class DeletesV1 extends Worker
$dbForProject = $this->getProjectDB($projectId);
$functionId = $document->getId();
/**
* Delete Variables
*/
Console::info("Deleting variables for function " . $functionId);
$this->deleteByGroup('variables', [
Query::equal('functionId', [$functionId])
], $dbForProject);
/**
* Delete Deployments
*/