mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
refactor: remove explicit type
This commit is contained in:
parent
03993acc71
commit
65c8575c0e
2 changed files with 3 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue