test #41
|
@ -178,11 +178,15 @@ class ExplorerService(
|
||||||
val notificationRecipientCount = notificationUserIds.size
|
val notificationRecipientCount = notificationUserIds.size
|
||||||
|
|
||||||
// 후원랭킹
|
// 후원랭킹
|
||||||
val memberDonationRanking = queryRepository.getMemberDonationRanking(
|
val memberDonationRanking = if (creatorId == member.id!! || creatorAccount.isVisibleDonationRank) {
|
||||||
creatorId,
|
queryRepository.getMemberDonationRanking(
|
||||||
10,
|
creatorId,
|
||||||
withDonationCan = creatorId == member.id!!
|
10,
|
||||||
)
|
withDonationCan = creatorId == member.id!!
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
listOf()
|
||||||
|
}
|
||||||
|
|
||||||
// 추천 크리에이터
|
// 추천 크리에이터
|
||||||
val similarCreatorList = queryRepository.getSimilarCreatorList(creatorId)
|
val similarCreatorList = queryRepository.getSimilarCreatorList(creatorId)
|
||||||
|
|
|
@ -653,15 +653,19 @@ class LiveRoomService(
|
||||||
.getNotificationUserIds(room.member!!.id!!)
|
.getNotificationUserIds(room.member!!.id!!)
|
||||||
.contains(member.id)
|
.contains(member.id)
|
||||||
|
|
||||||
val donationRankingTop3UserIds = explorerQueryRepository
|
val donationRankingTop3UserIds = if (room.member!!.isVisibleDonationRank) {
|
||||||
.getMemberDonationRanking(
|
explorerQueryRepository
|
||||||
room.member!!.id!!,
|
.getMemberDonationRanking(
|
||||||
3,
|
room.member!!.id!!,
|
||||||
withDonationCan = false
|
3,
|
||||||
)
|
withDonationCan = false
|
||||||
.asSequence()
|
)
|
||||||
.map { it.userId }
|
.asSequence()
|
||||||
.toList()
|
.map { it.userId }
|
||||||
|
.toList()
|
||||||
|
} else {
|
||||||
|
listOf()
|
||||||
|
}
|
||||||
|
|
||||||
return GetRoomInfoResponse(
|
return GetRoomInfoResponse(
|
||||||
roomId = roomId,
|
roomId = roomId,
|
||||||
|
|
Loading…
Reference in New Issue