mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
v3: first review of common code and task models
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user