From 156a930bc6291a3ec02ec2c127a31b0a64e562ad Mon Sep 17 00:00:00 2001 From: nohy6630 Date: Mon, 20 May 2024 01:21:16 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=B0=B0=EC=9B=80=EB=82=98=EB=88=84?= =?UTF-8?q?=EA=B8=B0=20=EC=B1=84=ED=8C=85=EB=B0=A9=20=EC=9E=85=EC=9E=A5?= =?UTF-8?q?=EC=8B=9C=20=EB=B0=A9=EC=9E=A5=EB=8F=84=20=EC=B1=84=ED=8C=85?= =?UTF-8?q?=EB=B0=A9=EC=97=90=20=EC=9E=85=EC=9E=A5=EB=90=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../teame/backend/domain/chatroom/service/ChatRoomService.java | 1 + 1 file changed, 1 insertion(+) 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(); } }