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)