Skip to content

Commit be85b17

Browse files
committed
Only delete repositories linked to the particular project
1 parent be6b31b commit be85b17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Appwrite/Platform/Workers/Deletes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ private function deleteFunction(Database $dbForConsole, callable $getProjectDB,
730730
*/
731731
Console::info("Deleting VCS repositories and comments linked to function " . $functionId);
732732
$this->deleteByGroup('repositories', [
733+
Query::equal('projectInternalId', [$projectInternalId]),
733734
Query::equal('resourceInternalId', [$functionInternalId]),
734735
Query::equal('resourceType', ['function']),
735736
], $dbForConsole, function (Document $document) use ($dbForConsole) {

0 commit comments

Comments
 (0)