채널, 라이브 정보 API - 후원랭킹 보기 스위치 on/off에 따라 후원랭킹이 조회되도록 수정

This commit is contained in:
2023-10-05 23:05:37 +09:00
parent ed4f0a62a1
commit 4f0148d80e
2 changed files with 22 additions and 14 deletions

View File

@@ -178,11 +178,15 @@ class ExplorerService(
val notificationRecipientCount = notificationUserIds.size
// 후원랭킹
val memberDonationRanking = queryRepository.getMemberDonationRanking(
creatorId,
10,
withDonationCan = creatorId == member.id!!
)
val memberDonationRanking = if (creatorId == member.id!! || creatorAccount.isVisibleDonationRank) {
queryRepository.getMemberDonationRanking(
creatorId,
10,
withDonationCan = creatorId == member.id!!
)
} else {
listOf()
}
// 추천 크리에이터
val similarCreatorList = queryRepository.getSimilarCreatorList(creatorId)