refactor: remove explicit type

This commit is contained in:
Gauthier Roebroeck 2025-07-16 11:24:09 +08:00
parent 03993acc71
commit 65c8575c0e
2 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ class BookCommonDao(
.where(rs.IN_PROGRESS_COUNT.eq(0))
.and(rs.READ_COUNT.ne(s.BOOK_COUNT))
.and(restrictions.toCondition())
.apply { filterOnLibraryIds?.let<Collection<String>, Unit> { and(s.LIBRARY_ID.`in`(it)) } },
.apply { filterOnLibraryIds?.let { and(s.LIBRARY_ID.`in`(it)) } },
)
val cteBooksFieldBookId = b.ID.`as`("cte_books_book_id")

View file

@ -187,9 +187,9 @@ class PageHashDao(
.from(p)
.innerJoin(ph)
.on(p.FILE_HASH.eq(ph.HASH))
.apply { libraryId?.let<String, Unit> { innerJoin(b).on(b.ID.eq(p.BOOK_ID)) } }
.apply { libraryId?.let { innerJoin(b).on(b.ID.eq(p.BOOK_ID)) } }
.where(ph.ACTION.`in`(actions))
.apply { libraryId?.let<String, Unit> { and(b.LIBRARY_ID.eq(it)) } }
.apply { libraryId?.let { and(b.LIBRARY_ID.eq(it)) } }
.fetch {
it.value1() to
BookPageNumbered(