시리즈 콘텐츠 정렬
- 콘텐츠 오픈 날짜를 기준으로 정렬되도록 수정
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user