Skip to content

Commit dcbbaab

Browse files
committed
[refact] 리크루팅 기간 이외 접근에 대해 검증하도록 수정 #192
1 parent b242de7 commit dcbbaab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/ceos/backend/domain/subscriber/helper/SubscriberHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public void validateEmail(String email) {
2424
}
2525

2626
public void validateDate(LocalDate startDate, LocalDate endDate, LocalDate now) {
27-
if (startDate.isBefore(now)) {
27+
if (now.isBefore(startDate)) {
2828
throw InvalidActionBefore.EXCEPTION;
29-
} else if (endDate.isAfter(now)) {
29+
} else if (now.isAfter(endDate)) {
3030
throw InvalidActionAfter.EXCEPTION;
3131
}
3232
}

0 commit comments

Comments
 (0)