mirror of
https://github.com/gotson/komga.git
synced 2025-12-22 00:13:30 +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() =
|
||||
fetchGroups({ it.into(c) }, { it.into(cs) })
|
||||
.map { (cr, csr) ->
|
||||
val seriesIds = csr.map { it.seriesId }
|
||||
val seriesIds = csr.mapNotNull { it.seriesId }
|
||||
cr.toDomain(seriesIds)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue