test #229

Merged
klaus merged 3 commits from test into main 2024-10-29 08:35:59 +00:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 9fcd172581 - Show all commits

View File

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