To-Do cron task decay fixes (#12072)

* fix(tasks): improve some cron behaviors
Fixes #6488
Fixes #8590

* add test

Co-authored-by: Matteo Pagliazzi <matteopagliazzi@gmail.com>
This commit is contained in:
Sabe Jones
2020-05-05 11:52:44 -05:00
committed by GitHub
parent 93335352ec
commit 446122d7b8
3 changed files with 19 additions and 10 deletions

View File

@@ -43,7 +43,7 @@ function _calculateDelta (task, direction, cron) {
}
// If To-Do, point-match the TD per checklist item completed
if (task.type === 'todo') {
if (task.type === 'todo' && !cron) {
nextDelta *= 1 + reduce(task.checklist, (m, i) => m + (i.completed ? 1 : 0), 0);
}
}