Skip to content

Commit

Permalink
Merge pull request #116 from AdultOfNineteen/develop
Browse files Browse the repository at this point in the history
Api-Release-v0.0.4-3
  • Loading branch information
imenuuu authored Nov 7, 2024
2 parents bb84e3f + 7f74d32 commit b772af6
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 b772af6

Please sign in to comment.