This commit is contained in:
Alyona 2018-10-28 00:17:16 +04:00
parent 450cb92d01
commit d1e6e80f87

View File

@ -19,13 +19,16 @@ public class DeadlineScheduler {
private final Logger log = LoggerFactory.getLogger(DeadlineScheduler.class);
private final PaperRepository paperRepository;
private final MailService mailService;
private final static boolean IS_DEADLINE_NOTIFICATION_BEFORE_WEEK = true;
public DeadlineScheduler(PaperRepository paperRepository, MailService mailService) {
this.paperRepository = paperRepository;
this.mailService = mailService;
}
private final static boolean IS_DEADLINE_NOTIFICATION_BEFORE_WEEK = true;
@Scheduled(cron = "0 0 8 * 1 ?")
public void checkDeadlineBeforeWeek() {