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: 현재 시간 계산 로직에 누락된 clock 추가 #580

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

ChooSeoyeon
Copy link
Member

📌 관련 이슈

close #579

✨ 작업 내용

  • 현재 시간 계산 로직에 누락된 clock 추가

📚 기타

@ChooSeoyeon ChooSeoyeon self-assigned this Oct 13, 2024
Copy link
Member

@masonkimseoul masonkimseoul left a comment

Choose a reason for hiding this comment

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

고생하셨습니다. 수정사항 확인하였습니다.

@@ -130,7 +132,7 @@ public Long saveOffering(OfferingSaveRequest request, MemberEntity member) {
}

private void validateMeetingDate(OfferingEntity offering) {
LocalDate thresholdDate = LocalDate.now().plusDays(1);
LocalDate thresholdDate = LocalDate.now(clock).plusDays(1);
Copy link
Member

Choose a reason for hiding this comment

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

clock 로직 mocking을 위해 이렇게 수정하셨군요~

# Conflicts:
#	backend/src/main/java/com/zzang/chongdae/offering/service/OfferingService.java
#	backend/src/test/java/com/zzang/chongdae/offering/integration/OfferingIntegrationTest.java
Copy link
Contributor

@helenason helenason left a comment

Choose a reason for hiding this comment

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

나중에 clock 주입을 어떻게 할지 같이 고민해봅시다!

lgtm~

# Conflicts:
#	backend/src/main/java/com/zzang/chongdae/offering/service/OfferingService.java
@helenason helenason merged commit 1ad2ccc into develop Oct 17, 2024
@helenason helenason deleted the feature/579-clock branch October 17, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

⚡ 현재 시간 계산 로직에 누락된 clock 추가
3 participants