diff --git a/src/main/java/org/poolc/api/message/service/MessageService.java b/src/main/java/org/poolc/api/message/service/MessageService.java index ad47d0ab..193421c0 100644 --- a/src/main/java/org/poolc/api/message/service/MessageService.java +++ b/src/main/java/org/poolc/api/message/service/MessageService.java @@ -35,8 +35,8 @@ public MessageResponse getMessageResponseById(Member member, Long messageId) { @Transactional(readOnly = true) public List findMessageResponsesByConversationId(Member member, String conversationId) { - List messageList = messageRepository.findAllByConversationID(conversationId); - Conversation conversation = conversationService.findConversationById(member.getLoginID(), conversationId); + Conversation conversation = conversationService.findConversationById(conversationId, member.getLoginID()); + List messageList = messageRepository.findAllByConversationId(conversationId); conversationService.checkWhetherInvolved(conversation, member.getLoginID()); return messageList.stream() .filter(message -> !message.isDeleted())