mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
Add additional data about dailies to task history (#13444)
This commit is contained in:
parent
ec050f504b
commit
e830e676c3
2 changed files with 4 additions and 0 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
|
|
@ -432,6 +432,8 @@ export function cron (options = {}) {
|
|||
task.history.push({
|
||||
date: Number(new Date()),
|
||||
value: task.value,
|
||||
isDue: task.isDue,
|
||||
completed: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue