Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] 선착순 이벤트 가져오기 조건 잘못되어 있던 버그 수정 (#137) #138

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

win-luck
Copy link
Collaborator

#️⃣ 연관 이슈

📝 작업 내용

// 오늘의 선착순 이벤트 정보(당첨자 수, 시작 시각)를 Redis에 배치
@Transactional(readOnly = true)
public void registerFcfsEvents() {
    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");
}

현재 선착순 이벤트의 정보를 가져오는 로직의 기준 시간이 100일로 되어 있어, 1일로 신속하게 수정했습니다.

참고 이미지 및 자료

💬 리뷰 요구사항

@win-luck win-luck added the fix 버그 및 오류 수정 label Aug 22, 2024
@win-luck win-luck requested a review from blaxsior August 22, 2024 08:23
@win-luck win-luck self-assigned this Aug 22, 2024
Copy link
Collaborator

@blaxsior blaxsior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

실수로 100일로 지정해뒀나 보군요 ㅋㅋ

@win-luck win-luck merged commit 16f8217 into dev Aug 22, 2024
1 check passed
@win-luck win-luck deleted the feature/137-fix-fcfs branch August 23, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix 버그 및 오류 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[fix] 선착순 이벤트 가져오기 조건 잘못되어 있던 버그 수정 (#137)
2 participants