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

View File

@ -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,