Skip to content

Commit

Permalink
fix(opds): duplicate series if in multiple collections
Browse files Browse the repository at this point in the history
closes gotson#363
  • Loading branch information
gotson committed Dec 18, 2020
1 parent 0b57262 commit c7e6209
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class SeriesDao(
override fun findAll(search: SeriesSearch): Collection<Series> {
val conditions = search.toCondition()

return dsl.select(*s.fields())
return dsl.selectDistinct(*s.fields())
.from(s)
.leftJoin(cs).on(s.ID.eq(cs.SERIES_ID))
.leftJoin(d).on(s.ID.eq(d.SERIES_ID))
Expand Down

0 comments on commit c7e6209

Please sign in to comment.