Skip to content

Commit

Permalink
[BE] Fix: 다른 유저의 이미지를 가져오는 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wjy35 committed Oct 6, 2023
1 parent a203daa commit 04676d4
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,13 @@ ResponseEntity<Response> view(@PathVariable Long memberId){
List<ChatRoomEntity> chatRoomEntityList = chatRoomSearchService.searchByMemberId(memberId);

for(ChatRoomEntity chatRoomEntity : chatRoomEntityList){
ChatDto chatDto = viewCurrentChatService.viewByChatRoomId(chatRoomEntity.getChatRoomId());

chatRoomSearchParamList.add(ChatRoomMapper.INSTANCE.toChatRoomSearchParam(
chatRoomEntity,
viewCurrentChatService.viewByChatRoomId(chatRoomEntity.getChatRoomId()),
chatDto,
chatShareBoardSearchService.searchByShareBoardId(chatRoomEntity.getSharePostId()),
chatMemberSearchService.searchByMemberId(
memberId==chatRoomEntity.getReceiverMemberId() ?
chatRoomEntity.getSenderMemberId():
chatRoomEntity.getReceiverMemberId()
)
chatMemberSearchService.searchByMemberId(chatDto.getMemberId())
));
}

Expand Down

0 comments on commit 04676d4

Please sign in to comment.