Skip to content

Commit

Permalink
Fix: 활동요약에서 저번주 평균값을 조회할 때 날짜가 이번주로 되어있던 버그를 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hee9841 committed Oct 28, 2024
1 parent 5050c2c commit 502f743
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ public RunningRecordWeeklySummaryResponse getWeeklySummary(
weekSummaries = runningRecordRepository.findDailyDistancesMeterByDateRange(
memberId, startWeekDate, nextOfEndWeekDate);
avgValue = runningRecordRepository.findAvgDistanceMeterByMemberIdAndDateRange(
memberId, startWeekDate, nextOfEndWeekDate);
memberId, startWeekDate.minusDays(7), nextOfEndWeekDate.minusDays(7));
conversionFactor = METERS_IN_A_KILOMETER;
} else {
weekSummaries = runningRecordRepository.findDailyDurationsSecByDateRange(
memberId, startWeekDate, nextOfEndWeekDate);
avgValue = runningRecordRepository.findAvgDurationSecByMemberIdAndDateRange(
memberId, startWeekDate, nextOfEndWeekDate);
memberId, startWeekDate.minusDays(7), nextOfEndWeekDate.minusDays(7));
conversionFactor = SECONDS_PER_HOUR;
}

Expand Down

0 comments on commit 502f743

Please sign in to comment.