Skip to content

Commit

Permalink
fix: 월별혜택 receivedSum 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-heo authored May 26, 2024
1 parent bb51592 commit 6052467
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public MontlyBenefitResponseDto.MontlyBenefitProfileDto getMontlyBenefitInfo(Use

int receivedSum = chatHistories.stream()
.filter(chatHistory -> chatHistory.isHasPaid() && chatHistory.getCreatedAt().getMonthValue() == month)
.mapToInt(ChatHistory::getPaymentAmount)
.mapToInt(ChatHistory::getDiscount)
.sum();

List<String> categories = chatHistories.stream()
Expand Down

0 comments on commit 6052467

Please sign in to comment.