Resolve "Реализовать уведомления о дедлайне статьи" #139

Merged
alefly merged 1 commits from 11-Message-about-deadlines into master 2018-10-28 01:00:44 +04:00

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() {