parent
d5e6ea8677
commit
4c50143834
|
@ -59,10 +59,10 @@ class ContentSeriesContentQueryRepositoryImpl(
|
||||||
.and(audioContent.isActive.isTrue)
|
.and(audioContent.isActive.isTrue)
|
||||||
.and(audioContent.duration.isNotNull)
|
.and(audioContent.duration.isNotNull)
|
||||||
|
|
||||||
var orderBy = seriesContent.createdAt.desc()
|
var orderBy = audioContent.releaseDate.desc()
|
||||||
|
|
||||||
if (sortType == SeriesSortType.OLDEST) {
|
if (sortType == SeriesSortType.OLDEST) {
|
||||||
orderBy = seriesContent.createdAt.asc()
|
orderBy = audioContent.releaseDate.asc()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isAdult) {
|
if (!isAdult) {
|
||||||
|
|
Loading…
Reference in New Issue