Skip to content

Commit

Permalink
Merge pull request #62 from Kusitms-29th-Meetup-TeamE/feat/61/chatroo…
Browse files Browse the repository at this point in the history
…m-host

Fix: 배움나누기 채팅방 입장시 방장도 채팅방에 입장되도록 설정
  • Loading branch information
nohy6630 authored May 19, 2024
2 parents 1f3c49c + 156a930 commit 7b08951
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public Long joinDirectChatRoom(Long experienceId) {
if (userChatRoomRepository.existsByChatRoomIdAndUserId(directChatRoom.getId(), user.getId()))
throw new CustomException(ExceptionContent.BAD_REQUEST_ALREADY_JOIN_CHATROOM);
userChatRoomRepository.save(UserChatRoom.of(directChatRoom, user));
userChatRoomRepository.save(UserChatRoom.of(directChatRoom, experience.getUser()));
return directChatRoom.getId();
}
}

0 comments on commit 7b08951

Please sign in to comment.