diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/BookDao.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/BookDao.kt index dcaafb5b..0ebab4ce 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/BookDao.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/BookDao.kt @@ -81,7 +81,7 @@ class BookDao( return dsl.selectFrom(b) .where(b.LIBRARY_ID.eq(libraryId)) .and(b.DELETED_DATE.isNull) - .and(b.URL.notIn(dsl.selectFrom(u))) + .and(b.URL.notIn(dsl.select(u.URL).from(u))) .fetchInto(b) .map { it.toDomain() } } diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/SeriesDao.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/SeriesDao.kt index 6daf5ba8..55d03bd3 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/SeriesDao.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/SeriesDao.kt @@ -59,7 +59,7 @@ class SeriesDao( return dsl.selectFrom(s) .where(s.LIBRARY_ID.eq(libraryId)) .and(s.DELETED_DATE.isNull) - .and(s.URL.notIn(dsl.selectFrom(u))) + .and(s.URL.notIn(dsl.select(u.URL).from(u))) .fetchInto(s) .map { it.toDomain() } }