diff --git a/src/main/java/com/postgraduate/domain/mentoring/application/usecase/MentoringManageUseCase.java b/src/main/java/com/postgraduate/domain/mentoring/application/usecase/MentoringManageUseCase.java index ba74ecbc..1d1e75c7 100644 --- a/src/main/java/com/postgraduate/domain/mentoring/application/usecase/MentoringManageUseCase.java +++ b/src/main/java/com/postgraduate/domain/mentoring/application/usecase/MentoringManageUseCase.java @@ -87,7 +87,7 @@ public void delete(User user, Long mentoringId) { } @Scheduled(cron = "0 59 23 * * *", zone = "Asia/Seoul") - private void updateAutoCancel() { + public void updateAutoCancel() { LocalDateTime now = LocalDateTime.now() .toLocalDate() .atStartOfDay(); @@ -101,7 +101,7 @@ private void updateAutoCancel() { } @Scheduled(cron = "0 59 23 * * *", zone = "Asia/Seoul") - private void updateAutoDone() { + public void updateAutoDone() { List expectedMentorings = mentoringGetService.byStatus(EXPECTED); expectedMentorings.stream() .filter(Mentoring::checkAutoDone) diff --git a/src/main/java/com/postgraduate/domain/salary/application/usecase/SalaryManageUseCase.java b/src/main/java/com/postgraduate/domain/salary/application/usecase/SalaryManageUseCase.java index 2fdb12bd..30436754 100644 --- a/src/main/java/com/postgraduate/domain/salary/application/usecase/SalaryManageUseCase.java +++ b/src/main/java/com/postgraduate/domain/salary/application/usecase/SalaryManageUseCase.java @@ -29,7 +29,7 @@ public class SalaryManageUseCase { private final SlackMessage slackMessage; @Scheduled(cron = "0 0 0 10 * *", zone = "Asia/Seoul") - private void createSalary() throws IOException { + public void createSalary() throws IOException { List salaries = salaryGetService.findAll(); slackMessage.sendSlackSalary(salaries);