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 e7b1c84f9..dee6b3c67 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)