Skip to content

Commit

Permalink
fix : 불필요한 디버깅 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
KkomSang committed May 29, 2024
1 parent 3c10ea3 commit 27d40dc
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ public ReportGraphResponseDto getMonthlyGraph(User user){
LocalDate startOfWeek = startOfMonth.with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY));
for(int week = 1; week<=5; week++) {
LocalDate endOfWeek = startOfWeek.plusDays(7);
System.out.println("startOfWeek = " + startOfWeek);
System.out.println("endOfWeek = " + endOfWeek);
List<Record> weeklyRecords = recordRepository.findAllByCreatedAtBetweenAndUser(startOfWeek.atStartOfDay(), endOfWeek.atStartOfDay(), user);
if(!weeklyRecords.isEmpty()) {
double sum = weeklyRecords.stream().mapToInt(Record::getHappiness).sum();
Expand Down

0 comments on commit 27d40dc

Please sign in to comment.