콘텐츠 리스트 - 정렬 조건 추가

This commit is contained in:
Klaus 2024-02-06 22:06:05 +09:00
parent a6a279837d
commit d3ffa1d40a
1 changed files with 7 additions and 1 deletions

View File

@ -194,7 +194,13 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
.where(where) .where(where)
.offset(offset) .offset(offset)
.limit(limit) .limit(limit)
.orderBy(pinContent.isActive.desc(), pinContent.updatedAt.desc(), orderBy, audioContent.id.desc()) .orderBy(
pinContent.isActive.desc(),
pinContent.updatedAt.desc(),
orderBy,
audioContent.updatedAt.desc(),
audioContent.id.desc()
)
.fetch() .fetch()
} }