Skip to content

Commit

Permalink
hotifx : 평균 평점 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkIsComing committed Aug 25, 2024
1 parent 4177bbc commit 72369d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public ResponseEntity<StatusResponse> getUserProfileStats(Long memberId) {
int joinCount = (int)postjoinRepository.countByMember(member);
int postCount = hostCount + joinCount;
int userHeartCount = userHeartRepository.countUserHeartsByMemberId(memberId).intValue();
BigDecimal averageScore = averageScoreRepository.findById(memberId)
BigDecimal averageScore = averageScoreRepository.findByMemberId(memberId)
.map(AverageScore::getAverageScore)
.orElse(BigDecimal.ZERO);

Expand Down

0 comments on commit 72369d3

Please sign in to comment.