test #41

Merged
klaus merged 2 commits from test into main 2023-10-06 08:50:32 +00:00
2 changed files with 22 additions and 14 deletions
Showing only changes of commit 4f0148d80e - Show all commits

View File

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

View File

@ -653,7 +653,8 @@ class LiveRoomService(
.getNotificationUserIds(room.member!!.id!!)
.contains(member.id)
val donationRankingTop3UserIds = explorerQueryRepository
val donationRankingTop3UserIds = if (room.member!!.isVisibleDonationRank) {
explorerQueryRepository
.getMemberDonationRanking(
room.member!!.id!!,
3,
@ -662,6 +663,9 @@ class LiveRoomService(
.asSequence()
.map { it.userId }
.toList()
} else {
listOf()
}
return GetRoomInfoResponse(
roomId = roomId,