diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomRepository.kt index 0080b72..c7223f8 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomRepository.kt @@ -253,7 +253,7 @@ class LiveRoomQueryRepositoryImpl( useCan.can.sum().add(useCan.rewardCan.sum()) } else { CaseBuilder() - .`when`(useCan.isSecret.isFalse.or(useCan.member.id.eq(memberId))) + .`when`(useCan.isSecret.isFalse) .then(useCan.can.sum().add(useCan.rewardCan.sum())) .otherwise(0) } @@ -275,7 +275,7 @@ class LiveRoomQueryRepositoryImpl( ).sum(), Expressions.asNumber( CaseBuilder() - .`when`(Expressions.asBoolean(isLiveCreator).isTrue) + .`when`(Expressions.asBoolean(isLiveCreator).isTrue.or(useCan.member.id.eq(memberId))) .then( Expressions.asNumber( CaseBuilder()