diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt index bfeaf41..a5211fd 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt @@ -1177,6 +1177,7 @@ class LiveRoomService( val room = repository.getLiveRoom(roomId) ?: throw SodaException("잘못된 요청입니다.") val isLiveCreator = room.member!!.id == memberId val donationList = repository.getDonationList(roomId = room.id!!, isLiveCreator = isLiveCreator) + .filter { it.secretCan > 0 || it.can > 0 } val totalCan = donationList.sumOf { it.can } val totalSecretCan = donationList.sumOf { it.secretCan }