Skip to content

Commit

Permalink
fix(api): first unread cover should include in progress books
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeville authored Apr 23, 2024
1 parent 0211096 commit 77c15f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class BookDao(
.leftJoin(d).on(b.ID.eq(d.BOOK_ID))
.leftJoin(r).on(b.ID.eq(r.BOOK_ID)).and(r.USER_ID.eq(userId).or(r.USER_ID.isNull))
.where(b.SERIES_ID.eq(seriesId))
.and(r.COMPLETED.isNull)
.and(r.COMPLETED.isNull.or(r.COMPLETED.isFalse))
.orderBy(d.NUMBER_SORT)
.limit(1)
.fetchOne(b.ID)
Expand Down

0 comments on commit 77c15f9

Please sign in to comment.