-
Notifications
You must be signed in to change notification settings - Fork 0
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] Soft Delete 구조 변경 #182
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다! 간단하게 리뷰 남겼습니다~!
|
||
private LocalDateTime getExpiryDate() { | ||
int expiredDay = parseInt(valueConfig.getDURATION_EXPIRED()); | ||
return LocalDateTime.now().minusDays(expiredDay - 1).toLocalDate().atStartOfDay(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LocalDateTime.now()에서 minusDays를 하고 LocalDate class로 바꿔주고 있는데, LocalDate.now()
를 바로 사용해도 괜찮을 것 같은데 어떠신가요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋은 피드백 감사해요 :)
private LocalDateTime createdAt; | ||
|
||
private LocalDateTime updatedAt; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기서 BaseTimeEntity를 상속받지 않은 이유는 인스턴스 생성시에,
this.createdAt = diary.getCreatedAt();
this.updatedAt = LocalDateTime.now();
위와 같이 값을 초기화하기 위해서일까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 맞아요! 처음에 BaseTimeEntity 상속 후 초기화 했었는데, 실행해보니 초기화가 적용되지 않아 해당 코드로 변경했어요ㅠㅠ!
@unanchoi 리뷰 반영했습니다! 언제나 좋은 피드백 감사드려요 :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다~!
새해복 많이 받으세요!!!1
Related issue 🚀
Work Description 💚