Skip to content

Commit

Permalink
Revert "!hotfix: 채팅방 목록 조회 시 groupBy 문제 해결 (#388)"
Browse files Browse the repository at this point in the history
This reverts commit b439c21.
  • Loading branch information
swonny authored Oct 6, 2023
1 parent 3c3d883 commit 6320fe9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public List<ChatRoomAndMessageDto> findAllChatRoomInfoByUserIdOrderByLastMessage
.select(message.id.max())
.from(message)
.where(message.chatRoom.id.eq(chatRoom.id))
.groupBy(chatRoom.id)
))
.where(isSellerOrWinner(userId))
.groupBy(chatRoom.id)
.fetch();

return sortByLastMessageIdDesc(unsortedDtos);
Expand Down

0 comments on commit 6320fe9

Please sign in to comment.