refactor: use fetchSet

This commit is contained in:
Gauthier Roebroeck 2022-02-24 17:52:47 +08:00
parent ee68ea6451
commit 3a218c0afa
2 changed files with 2 additions and 6 deletions

View file

@ -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) {

View file

@ -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)