diff --git a/backend/ddang/src/main/java/com/ddang/ddang/chat/infrastructure/persistence/QuerydslChatRoomAndMessageAndImageRepository.java b/backend/ddang/src/main/java/com/ddang/ddang/chat/infrastructure/persistence/QuerydslChatRoomAndMessageAndImageRepository.java index 35b342770..10a720230 100644 --- a/backend/ddang/src/main/java/com/ddang/ddang/chat/infrastructure/persistence/QuerydslChatRoomAndMessageAndImageRepository.java +++ b/backend/ddang/src/main/java/com/ddang/ddang/chat/infrastructure/persistence/QuerydslChatRoomAndMessageAndImageRepository.java @@ -44,7 +44,6 @@ public List findAllChatRoomInfoByUserIdOrderByLas .select(auctionImage.id.min()) .from(auctionImage) .where(auctionImage.auction.id.eq(auction.id)) - .groupBy(auctionImage.auction.id) )).fetchJoin() .join(auction.lastBid).fetchJoin() .leftJoin(message).on(message.id.eq( @@ -52,7 +51,6 @@ public List findAllChatRoomInfoByUserIdOrderByLas .select(message.id.max()) .from(message) .where(message.chatRoom.id.eq(chatRoom.id)) - .groupBy(message.chatRoom.id) )).fetchJoin() .where(isSellerOrWinner(userId)) .fetch();