mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Only delete repositories linked to the particular project
This commit is contained in:
parent
be6b31b43f
commit
be85b173e7
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', [$projectInternalId]),
|
||||
Query::equal('resourceInternalId', [$functionInternalId]),
|
||||
Query::equal('resourceType', ['function']),
|
||||
], $dbForConsole, function (Document $document) use ($dbForConsole) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue