Skip to content

Commit fca8aa7

Browse files
authored
Merge pull request #68 from ChillCoders-CapstoneDesign/feature/notification
refactor: 알림 코드 수정
2 parents f069b8e + 8d786bf commit fca8aa7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/project/submate/notification/service/NotificationScheduler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class NotificationScheduler {
1616
private final SubscribeRepository subscribeRepository;
1717
private final NotificationService notificationService;
1818

19-
@Scheduled(cron = "0 0 9 * * *") // 매일 오전 9시
19+
@Scheduled(cron = "0 0 9 * * *") // 매일 오전 9시(한국시간아님)
2020
public void checkNotifications() {
2121
System.out.println("Scheduler 실행 시작");
2222

@@ -74,7 +74,7 @@ else if ("년".equals(s.getPeriodUnit())) {
7474
}
7575

7676
// 1. 디데이 3일 전 알림
77-
if (dDay == 3) {
77+
if (dDay == 4) {
7878
notificationService.saveNotification(1, s.getSubscribeName() + " 구독 결제가 3일 후 예정되어 있어요!");
7979
}
8080

0 commit comments

Comments
 (0)