Skip to content

Commit

Permalink
๐Ÿ”€ :: ๊ฒŒ์‹œ๊ธ€ ์•ˆ ๋ณด์ด๋Š” ์˜ค๋ฅ˜ ํ•ด๊ฒฐ
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongho1209 committed Oct 4, 2023
1 parent a4f1f40 commit 09e446e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ public FeedPageList queryAllFeedByCategory(UUID categoryId, LocalDateTime time,
.leftJoin(commentEntity)
.on(feedEntity.id.eq(commentEntity.feedEntity.id))
.where(
commentEntity.deleted.eq(false),
expression.and(categoryIdEq(categoryId)), feedEntity.deleted.eq(false)
commentEntity.deleted.eq(false).or(
expression.and(feedEntity.deleted.eq(false).and(categoryIdEq(categoryId)))
)
)
.groupBy(feedEntity.id)
.orderBy(feedEntity.createdAt.desc())
Expand Down

0 comments on commit 09e446e

Please sign in to comment.