Compare commits

...

3 Commits

Author SHA1 Message Date
klaus 05df86e15a Merge pull request 'test' (#163) from test into main
Reviewed-on: #163
2024-04-09 14:40:33 +00:00
Klaus 4e84678a3c 라이브 중 리스트 - 정렬 조건 수정
- 라이브 랭킹 값이 없는 경우 0으로 처리해서 정렬 되도록 수정
2024-04-09 23:22:53 +09:00
Klaus 2ca4204775 크리에이터 채널 - 팔로워 수
- 탈퇴한 회원은 카운팅에서 제외
2024-04-09 23:09:22 +09:00
2 changed files with 3 additions and 2 deletions

View File

@ -54,6 +54,7 @@ class ExplorerQueryRepository(
.where(
creatorFollowing.isActive.isTrue
.and(creatorFollowing.creator.id.eq(creatorId))
.and(creatorFollowing.member.isActive.isTrue)
)
.fetch()
}

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()
)