Skip to content

Commit

Permalink
Merge pull request #138 from softeerbootcamp4th/feature/137-fix-fcfs
Browse files Browse the repository at this point in the history
[fix] 선착순 이벤트 가져오기 조건 잘못되어 있던 버그 수정 (#137)
  • Loading branch information
win-luck authored Aug 22, 2024
2 parents 81e5ebd + 2bf3fe2 commit 16f8217
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class FcfsManageService {
// 오늘의 선착순 이벤트 정보(당첨자 수, 시작 시각)를 Redis에 배치
@Transactional(readOnly = true)
public void registerFcfsEvents() {
List<FcfsEvent> events = fcfsEventRepository.findByStartTimeBetween(Instant.now(), Instant.now().plus(100, ChronoUnit.DAYS));
List<FcfsEvent> events = fcfsEventRepository.findByStartTimeBetween(Instant.now(), Instant.now().plus(1, ChronoUnit.DAYS));
events.forEach(this::prepareEventInfo);
log.info("Today's FCFS events were registered in Redis");
}
Expand Down

0 comments on commit 16f8217

Please sign in to comment.