From caf9d6841c9ddfffda193fb363d35415232bdc7e Mon Sep 17 00:00:00 2001 From: yang Date: Thu, 11 Jan 2024 03:25:05 +0900 Subject: [PATCH] =?UTF-8?q?RAC-277=20fix=20:=20@Scheduled=20public?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mentoring/application/usecase/MentoringManageUseCase.java | 4 ++-- .../salary/application/usecase/SalaryManageUseCase.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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);