라이브 중 리스트 - 정렬 조건 수정

- 라이브 랭킹 값이 없는 경우 0으로 처리해서 정렬 되도록 수정
This commit is contained in:
Klaus 2024-04-09 23:22:53 +09:00
parent 2ca4204775
commit 4e84678a3c
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ class LiveRoomQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : L
.offset(offset)
.limit(limit)
.orderBy(
quarterLiveRankings.totalCan.desc(),
quarterLiveRankings.totalParticipants.desc(),
quarterLiveRankings.totalCan.coalesce(0).desc(),
quarterLiveRankings.totalParticipants.coalesce(0).desc(),
liveRoom.beginDateTime.desc(),
liveRoom.member.createdAt.desc()
)