v3: first review of common code and task models

This commit is contained in:
Matteo Pagliazzi
2016-04-12 19:30:39 +02:00
parent 004b032084
commit 6458796a36
14 changed files with 40 additions and 45 deletions

View File

@@ -197,7 +197,7 @@ module.exports = function scoreTask (options = {}, req = {}) {
// Add history entry, even more than 1 per day
task.history.push({
date: Number(new Date()), // TODO are we going to cast history entries?
date: Number(new Date()),
value: task.value,
});
} else if (task.type === 'daily') {