Skip to content

Commit

Permalink
RAC-277 fix : @scheduled public변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ywj9811 committed Jan 10, 2024
1 parent 9f15a30 commit caf9d68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -101,7 +101,7 @@ private void updateAutoCancel() {
}

@Scheduled(cron = "0 59 23 * * *", zone = "Asia/Seoul")
private void updateAutoDone() {
public void updateAutoDone() {
List<Mentoring> expectedMentorings = mentoringGetService.byStatus(EXPECTED);
expectedMentorings.stream()
.filter(Mentoring::checkAutoDone)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Salary> salaries = salaryGetService.findAll();
slackMessage.sendSlackSalary(salaries);

Expand Down

0 comments on commit caf9d68

Please sign in to comment.