Skip to content

Commit

Permalink
fix: updateAt 강제로 갱신하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchijinju committed Oct 12, 2024
1 parent 9a71ea5 commit b505afc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ private void updateStreakData(SearchHistory history, YearMonth dateYM, String pu
int startDay = history.getLastSuccessDay();
if (startDay >= dateYM.lengthOfMonth()) {
history.setDone(true);
history.setUpdatedAt(LocalDateTime.now());
searchHistoryRepository.save(history);
return;
}
Expand Down Expand Up @@ -143,6 +144,7 @@ private void updateStreakData(SearchHistory history, YearMonth dateYM, String pu
history.setLastSuccessDay(dateYM.lengthOfMonth());
history.setDone(true);
}
history.setUpdatedAt(LocalDateTime.now());
searchHistoryRepository.save(history);
}
}

0 comments on commit b505afc

Please sign in to comment.