Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuzynow committed Aug 30, 2024
1 parent b9fdf7d commit 340da77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ public void removeFromGroupAndIgnoreGroupNotFound() {
session.getGroupId(), consultants)));
}

public void removeFromGroup() {
this.consultantsToRemoveFromSessions.forEach(
((session, consultants) ->
removeConsultantsFromSessionGroup(session.getGroupId(), consultants)));
}

/**
* Removes the given consultant from Rocket.Chat group of given session with rollback on error.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private void removeUnauthorizedMembers(
.onSessionConsultants(Map.of(session, consultantsToRemoveFromRocketChat));

if (rcGroupId.equalsIgnoreCase(session.getGroupId())) {
rocketChatRemoveFromGroupOperationService.removeFromGroup();
rocketChatRemoveFromGroupOperationService.removeFromGroupAndIgnoreGroupNotFound();
}
if (rcGroupId.equalsIgnoreCase(session.getFeedbackGroupId())) {
rocketChatRemoveFromGroupOperationService.removeFromFeedbackGroup();
Expand Down

0 comments on commit 340da77

Please sign in to comment.