diff --git a/src/main/java/com/meetup/teame/backend/domain/chatroom/service/ChatRoomService.java b/src/main/java/com/meetup/teame/backend/domain/chatroom/service/ChatRoomService.java index ae8e748..8f039f4 100644 --- a/src/main/java/com/meetup/teame/backend/domain/chatroom/service/ChatRoomService.java +++ b/src/main/java/com/meetup/teame/backend/domain/chatroom/service/ChatRoomService.java @@ -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(); } }