From 1b48247ade6d700962c15cd6b5a5be6510ded66a Mon Sep 17 00:00:00 2001 From: alsco39 Date: Mon, 25 Sep 2023 16:21:26 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20::=20=EC=A1=B0=EA=B1=B4?= =?UTF-8?q?=EC=BF=BC=EB=A6=AC=EB=AC=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../feed/domain/repository/FeedRepositoryAdapter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/feed-infrastructure/src/main/java/com/xquare/v1servicefeed/feed/domain/repository/FeedRepositoryAdapter.java b/feed-infrastructure/src/main/java/com/xquare/v1servicefeed/feed/domain/repository/FeedRepositoryAdapter.java index 44cef338..05655d5d 100644 --- a/feed-infrastructure/src/main/java/com/xquare/v1servicefeed/feed/domain/repository/FeedRepositoryAdapter.java +++ b/feed-infrastructure/src/main/java/com/xquare/v1servicefeed/feed/domain/repository/FeedRepositoryAdapter.java @@ -81,7 +81,10 @@ public FeedPageList queryAllFeedByCategory(UUID categoryId, LocalDateTime time, .on(feedEntity.id.eq(feedLikeEntity.feedEntity.id)) .leftJoin(commentEntity) .on(feedEntity.id.eq(commentEntity.feedEntity.id)) - .where(expression.and(categoryIdEq(categoryId)), feedEntity.deleted.eq(false)) + .where( + commentEntity.deleted.eq(false), + expression.and(categoryIdEq(categoryId)), feedEntity.deleted.eq(false) + ) .groupBy(feedEntity.id) .orderBy(feedEntity.createdAt.desc()) .limit(limit)