Skip to content

Commit

Permalink
refactor : 본인 작성 노트 X cht
Browse files Browse the repository at this point in the history
  • Loading branch information
imenuuu committed Nov 7, 2024
1 parent 8253906 commit 7f74d32
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public Page<TastingNote> findTastingNotesByWine(Wine wine, User user, Integer pa
qTastingNote.wine.eq(wine)
.and(qTastingNote.isDeleted.eq(false))
.and(qTastingNote.isPublic.eq(true)
.or(qTastingNote.user.eq(user))
).and(qTastingNote.user.ne(user))
)
.orderBy(qTastingNote.id.desc());
Expand All @@ -107,8 +106,8 @@ public Page<TastingNote> findTastingNotesByWine(Wine wine, User user, Integer pa
qTastingNote.wine.eq(wine)
.and(qTastingNote.isDeleted.eq(false))
.and(qTastingNote.isPublic.eq(true)
.or(qTastingNote.user.eq(user))
)
).and(qTastingNote.user.ne(user)
)
).fetchCount();

return new PageImpl<>(results, pageable, total);
Expand Down

0 comments on commit 7f74d32

Please sign in to comment.