From 10fe1337ed0a095920ca718c8bf491e61afdf5a2 Mon Sep 17 00:00:00 2001 From: geneaky Date: Mon, 7 Oct 2024 22:06:54 +0900 Subject: [PATCH] =?UTF-8?q?revise:=20=EC=B1=84=ED=8C=85=20=EC=86=A1?= =?UTF-8?q?=EC=8B=A0=EC=9E=90=20id=EB=A1=9C=20=EC=86=A1=EC=8B=A0=EC=9E=90?= =?UTF-8?q?=20=EC=A0=95=EB=B3=B4=20=EC=A1=B0=ED=9A=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../toy/bookchat/bookchat/domain/chat/service/ChatReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/toy/bookchat/bookchat/domain/chat/service/ChatReader.java b/src/main/java/toy/bookchat/bookchat/domain/chat/service/ChatReader.java index 21a9cc65..70be0a58 100644 --- a/src/main/java/toy/bookchat/bookchat/domain/chat/service/ChatReader.java +++ b/src/main/java/toy/bookchat/bookchat/domain/chat/service/ChatReader.java @@ -30,7 +30,7 @@ public ChatReader(ChatRepository chatRepository, UserReader userReader) { public Chat readChat(Long userId, Long chatId) { ChatEntity chatEntity = chatRepository.getUserChatRoomChat(chatId, userId) .orElseThrow(ParticipantNotFoundException::new); - User user = userReader.readUser(userId); + User user = userReader.readUser(chatEntity.getUserId()); Sender sender = Sender.from(user);