mirror of
https://github.com/gotson/komga.git
synced 2026-02-15 03:43:05 +01:00
fix(api): collection without element would return incorrect dto
This commit is contained in:
parent
78eba89733
commit
08919814d3
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class SeriesCollectionDao(
|
||||||
private fun ResultQuery<Record>.fetchAndMap() =
|
private fun ResultQuery<Record>.fetchAndMap() =
|
||||||
fetchGroups({ it.into(c) }, { it.into(cs) })
|
fetchGroups({ it.into(c) }, { it.into(cs) })
|
||||||
.map { (cr, csr) ->
|
.map { (cr, csr) ->
|
||||||
val seriesIds = csr.map { it.seriesId }
|
val seriesIds = csr.mapNotNull { it.seriesId }
|
||||||
cr.toDomain(seriesIds)
|
cr.toDomain(seriesIds)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue