mirror of
https://github.com/gotson/komga.git
synced 2025-12-26 02:15:40 +01:00
refactor: use fetchSet
This commit is contained in:
parent
ee68ea6451
commit
3a218c0afa
2 changed files with 2 additions and 6 deletions
|
|
@ -43,9 +43,7 @@ class BookMetadataAggregationDao(
|
|||
dsl.select(t.TAG)
|
||||
.from(t)
|
||||
.where(t.SERIES_ID.eq(seriesId))
|
||||
.fetchInto(t)
|
||||
.mapNotNull { it.tag }
|
||||
.toSet()
|
||||
.fetchSet(t.TAG)
|
||||
|
||||
@Transactional
|
||||
override fun insert(metadata: BookMetadataAggregation) {
|
||||
|
|
|
|||
|
|
@ -53,9 +53,7 @@ class BookMetadataDao(
|
|||
dsl.select(bt.TAG)
|
||||
.from(bt)
|
||||
.where(bt.BOOK_ID.eq(bookId))
|
||||
.fetchInto(bt)
|
||||
.mapNotNull { it.tag }
|
||||
.toSet()
|
||||
.fetchSet(bt.TAG)
|
||||
|
||||
private fun findLinks(bookId: String) =
|
||||
dsl.select(bl.LABEL, bl.URL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue