From 77c15f93f72ed2c3f9e25a0797ee947643da3874 Mon Sep 17 00:00:00 2001 From: Damien Deville Date: Mon, 22 Apr 2024 19:49:50 -0700 Subject: [PATCH] fix(api): first unread cover should include in progress books --- .../kotlin/org/gotson/komga/infrastructure/jooq/main/BookDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/main/BookDao.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/main/BookDao.kt index e7b1c84f9c..dee6b3c67f 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/main/BookDao.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/main/BookDao.kt @@ -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)