채널, 라이브 정보 API - 후원랭킹 보기 스위치 on/off에 따라 후원랭킹이 조회되도록 수정
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
| @@ -653,15 +653,19 @@ class LiveRoomService( | ||||
|             .getNotificationUserIds(room.member!!.id!!) | ||||
|             .contains(member.id) | ||||
|  | ||||
|         val donationRankingTop3UserIds = explorerQueryRepository | ||||
|             .getMemberDonationRanking( | ||||
|                 room.member!!.id!!, | ||||
|                 3, | ||||
|                 withDonationCan = false | ||||
|             ) | ||||
|             .asSequence() | ||||
|             .map { it.userId } | ||||
|             .toList() | ||||
|         val donationRankingTop3UserIds = if (room.member!!.isVisibleDonationRank) { | ||||
|             explorerQueryRepository | ||||
|                 .getMemberDonationRanking( | ||||
|                     room.member!!.id!!, | ||||
|                     3, | ||||
|                     withDonationCan = false | ||||
|                 ) | ||||
|                 .asSequence() | ||||
|                 .map { it.userId } | ||||
|                 .toList() | ||||
|         } else { | ||||
|             listOf() | ||||
|         } | ||||
|  | ||||
|         return GetRoomInfoResponse( | ||||
|             roomId = roomId, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user