mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
fix(cron): don't adjust task decay by "assignments" for open Daily
This commit is contained in:
parent
aa81c330af
commit
d3fde93762
1 changed files with 3 additions and 1 deletions
|
|
@ -62,7 +62,9 @@ async function updateTeamTasks (team) {
|
|||
}
|
||||
processChecklist = true;
|
||||
const delta = TASK_VALUE_CHANGE_FACTOR ** daily.value;
|
||||
daily.value -= ((completions / assignments) * delta);
|
||||
if (assignments > 0) {
|
||||
daily.value -= ((completions / assignments) * delta);
|
||||
}
|
||||
if (daily.value < MIN_TASK_VALUE) daily.value = MIN_TASK_VALUE;
|
||||
}
|
||||
daily.isDue = shouldDo(new Date(), daily, teamLeader.preferences);
|
||||
|
|
|
|||
Loading…
Reference in a new issue