Skip to content

Commit

Permalink
fix: 선착순 이벤트 Test API에서 오늘 날짜 기준으로 이벤트 삽입하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
wjddn2165 committed Aug 12, 2024
1 parent c5dc27a commit 72bbc82
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ public void setTodayEventToRedis() {
rushOptionRepository.deleteAllInBatch();
rushEventRepository.deleteAllInBatch();

LocalDateTime startDateTime = LocalDateTime.of(2024, 8, 11, 22, 0);
// 현재 날짜와 시간을 기준으로 이벤트 시간 설정
LocalDateTime startDateTime = LocalDateTime.now().withHour(22).withMinute(0).withSecond(0).withNano(0);
LocalDateTime endDateTime = startDateTime.plusMinutes(10);

List<RushEvent> rushEvents = new ArrayList<>();
Expand Down

0 comments on commit 72bbc82

Please sign in to comment.