We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7cab261 + 789db87 commit 37779b4Copy full SHA for 37779b4
1 file changed
src/main/java/com/project/submate/subscribe/service/SubscribeService.java
@@ -56,6 +56,11 @@ public SubscribeListResponseDto subscribeAllList() {
56
private int calculateDday(LocalDate startDate) {
57
// LocalDate.plusMonths: 자동으로 월의 마지막 날짜를 고려하여 계산한다.
58
// LocalDate baseDate = startDate.plusMonths(1); // 기준일: startDate + 1달
59
+
60
+ if (startDate == null) {
61
+ return 0;
62
+ }
63
64
LocalDate now = LocalDate.now(ZoneId.of("Asia/Seoul"));
65
66
// 반복 결제일: 매달 startDate의 day에 결제된다고 가정한다.
0 commit comments