Skip to content

Commit

Permalink
fix: delete rooms even if user is already deleted from MariaDB
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuzynow committed Aug 1, 2024
1 parent 959d352 commit fb063f7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ private Collection<? extends DeletionWorkflowError> performUserSessionDeletionFo

private Optional<Session> findSessionInUserSessionList(
String rcGroupId, List<Session> userSessionList) {
return userSessionList.stream().filter(s -> s.getGroupId().equals(rcGroupId)).findFirst();

return userSessionList.stream()
.filter(s -> s.getGroupId() != null && s.getGroupId().equals(rcGroupId))
.findFirst();
}
}

0 comments on commit fb063f7

Please sign in to comment.