Skip to content

Commit

Permalink
fix(api): collection without element would return incorrect dto
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Jun 26, 2020
1 parent 78eba89 commit 0891981
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 0891981

Please sign in to comment.