mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Merge pull request #3884 from appwrite/fix-delete-function-variables
Fix: Function deletes worker
This commit is contained in:
commit
c2d3544c55
1 changed files with 8 additions and 0 deletions
|
|
@ -410,6 +410,14 @@ class DeletesV1 extends Worker
|
||||||
$dbForProject = $this->getProjectDB($projectId);
|
$dbForProject = $this->getProjectDB($projectId);
|
||||||
$functionId = $document->getId();
|
$functionId = $document->getId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete Variables
|
||||||
|
*/
|
||||||
|
Console::info("Deleting variables for function " . $functionId);
|
||||||
|
$this->deleteByGroup('variables', [
|
||||||
|
Query::equal('functionId', [$functionId])
|
||||||
|
], $dbForProject);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete Deployments
|
* Delete Deployments
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue