Skip to content

Commit

Permalink
revise: 채팅 송신자 id로 송신자 정보 조회
Browse files Browse the repository at this point in the history
  • Loading branch information
geneaky committed Oct 7, 2024
1 parent 87246a5 commit 10fe133
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 10fe133

Please sign in to comment.