Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Gorzala committed Dec 15, 2023
1 parent 82cb1e9 commit be2357a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/dancier/dancer/chat/ChatService.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ public Void createMessage(UUID chatId, UUID dancerId, CreateMessageDto createMes
}

private void throwIfDancerIsNotInChat(List<UUID> participantIds, UUID currentDancerId) {
log.info("Before Check");
if (!participantIds.contains(currentDancerId)) {
throw new BusinessException("Current dancer must be part of the chat");
}
log.info("AfterCheck");
}

}

0 comments on commit be2357a

Please sign in to comment.