Add additional data about dailies to task history (#13444)

This commit is contained in:
Phillip Thelen
2021-08-12 22:38:11 +02:00
committed by GitHub
parent ec050f504b
commit e830e676c3
2 changed files with 4 additions and 0 deletions

View File

@@ -308,6 +308,8 @@ export default function scoreTask (options = {}, req = {}, analytics) {
const historyEntry = {
date: Number(new Date()),
value: task.value,
isDue: task.isDue,
completed: true,
};
task.history.push(historyEntry);
} else if (direction === 'down') {