Skip to content

Commit aa69d61

Browse files
committed
chore: 투표 결과 totalCount 관련 TODO 주석 추가
1 parent 330053f commit aa69d61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/moa/moa_server/domain/vote/service/VoteQueryService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public VoteResultResponse getVoteResult(Long userId, Long voteId) {
6363
// 전체 참여자 수 계산
6464
List<VoteResponse> responses = voteResponseRepository.findAllByVote(vote);
6565
int totalCount = (int) responses.stream().filter(vr -> vr.getOptionNumber() > 0).count();
66+
// TODO: totalCount에서 COUNT 쿼리 발생. results 이후에 합치도록 개선
6667

6768
// 결과 조회
6869
List<VoteOptionResult> results = voteResultService.getResults(vote);

0 commit comments

Comments
 (0)