WIP(teams): fixes, beta banner

This commit is contained in:
Sabe Jones
2021-06-25 08:56:06 -05:00
committed by SabreCat
parent 85a9ea726c
commit 59dc97b75f
6 changed files with 49 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ async function updateTeamTasks (team) {
if (daily.value < MIN_TASK_VALUE) daily.value = MIN_TASK_VALUE;
}
daily.isDue = shouldDo(new Date(), daily, teamLeader.preferences);
if (daily.isModified()) toSave.push(daily.save());
toSave.push(daily.save());
});
if (!team.cron) team.cron = {};