mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
Merge pull request #7131 from appwrite/fix-repository-deletion-bug
Only delete repositories linked to the particular project
This commit is contained in:
commit
89c097eed3
1 changed files with 1 additions and 0 deletions
|
|
@ -730,6 +730,7 @@ class Deletes extends Action
|
|||
*/
|
||||
Console::info("Deleting VCS repositories and comments linked to function " . $functionId);
|
||||
$this->deleteByGroup('repositories', [
|
||||
Query::equal('projectInternalId', [$project->getInternalId()]),
|
||||
Query::equal('resourceInternalId', [$functionInternalId]),
|
||||
Query::equal('resourceType', ['function']),
|
||||
], $dbForConsole, function (Document $document) use ($dbForConsole) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue