Merge pull request #5402 from arjavdongaonkar/fix/team-delete

This commit is contained in:
Niklas 2025-10-13 21:49:52 +02:00 committed by GitHub
commit db7198805c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1542,6 +1542,10 @@ public class QueryManager extends AlpineQueryManager {
final Query<?> aclDeleteQuery = pm.newQuery(JDOQuery.SQL_QUERY_LANGUAGE, """
DELETE FROM "PROJECT_ACCESS_TEAMS" WHERE "PROJECT_ACCESS_TEAMS"."TEAM_ID" = ?""");
executeAndCloseWithArray(aclDeleteQuery, team.getId());
final Query<?> notificationRuleQuery = pm.newQuery(JDOQuery.SQL_QUERY_LANGUAGE, """
DELETE FROM "NOTIFICATIONRULE_TEAMS" WHERE "NOTIFICATIONRULE_TEAMS"."TEAM_ID" = ?""");
executeAndCloseWithArray(notificationRuleQuery, team.getId());
}
pm.deletePersistent(team);