Skip to content

Commit 350b850

Browse files
add removed query
1 parent 06fe237 commit 350b850

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/dependencytrack/persistence/QueryManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,10 @@ public void recursivelyDeleteTeam(Team team) {
15471547
final Query<?> aclDeleteQuery = pm.newQuery(JDOQuery.SQL_QUERY_LANGUAGE, """
15481548
DELETE FROM "PROJECT_ACCESS_TEAMS" WHERE "PROJECT_ACCESS_TEAMS"."TEAM_ID" = ?""");
15491549
executeAndCloseWithArray(aclDeleteQuery, team.getId());
1550+
1551+
final Query<?> notificationRuleQuery = pm.newQuery(JDOQuery.SQL_QUERY_LANGUAGE, """
1552+
DELETE FROM "NOTIFICATIONRULE_TEAMS" WHERE "NOTIFICATIONRULE_TEAMS"."TEAM_ID" = ?""");
1553+
executeAndCloseWithArray(notificationRuleQuery, team.getId());
15501554
}
15511555

15521556
pm.deletePersistent(team);

0 commit comments

Comments
 (0)