mirror of
https://github.com/gotson/komga.git
synced 2026-01-04 14:52:51 +01:00
fix(api): first unread cover should include in progress books
This commit is contained in:
parent
02110962c1
commit
77c15f93f7
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue