Compare commits
No commits in common. "ba692a11953de25cf7c164f4e716d3e5f88861fc" and "d732bad042b55e42ae5e8cb4f4cbaed0ef415ec5" have entirely different histories.
ba692a1195
...
d732bad042
|
@ -59,10 +59,10 @@ class ContentSeriesContentQueryRepositoryImpl(
|
||||||
.and(audioContent.isActive.isTrue)
|
.and(audioContent.isActive.isTrue)
|
||||||
.and(audioContent.duration.isNotNull)
|
.and(audioContent.duration.isNotNull)
|
||||||
|
|
||||||
var sortOrders = listOf(audioContent.releaseDate.desc(), audioContent.id.desc())
|
var orderBy = audioContent.releaseDate.desc()
|
||||||
|
|
||||||
if (sortType == SeriesSortType.OLDEST) {
|
if (sortType == SeriesSortType.OLDEST) {
|
||||||
sortOrders = listOf(audioContent.releaseDate.asc(), audioContent.id.asc())
|
orderBy = audioContent.releaseDate.asc()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isAdult) {
|
if (!isAdult) {
|
||||||
|
@ -98,7 +98,7 @@ class ContentSeriesContentQueryRepositoryImpl(
|
||||||
.innerJoin(seriesContent.series, series)
|
.innerJoin(seriesContent.series, series)
|
||||||
.innerJoin(seriesContent.content, audioContent)
|
.innerJoin(seriesContent.content, audioContent)
|
||||||
.where(where)
|
.where(where)
|
||||||
.orderBy(*sortOrders.toTypedArray())
|
.orderBy(orderBy)
|
||||||
.offset(offset)
|
.offset(offset)
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
.fetch()
|
.fetch()
|
||||||
|
|
Loading…
Reference in New Issue