Skip to content

Commit

Permalink
♻️ :: 조건쿼리문 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
alsco39 committed Sep 25, 2023
1 parent d8eb376 commit 1b48247
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1b48247

Please sign in to comment.