Tasks is due (#8711)

* Added isDue field and isDue set on create

* Added isDue update on update task

* Add isdue calc to score task

* Added isdue calc to cron

* Fixed lint issue

* Added isDue to no set and updated grammar
This commit is contained in:
Keith Holliday
2017-05-10 07:40:45 -06:00
committed by GitHub
parent 638c9dee89
commit 727cdc9402
8 changed files with 34 additions and 1 deletions

View File

@@ -314,6 +314,7 @@ export function cron (options = {}) {
value: task.value,
});
task.completed = false;
task.isDue = common.shouldDo(Date.now(), task, user.preferences);
if (completed || scheduleMisses > 0) {
if (task.checklist) {