mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Add additional data about dailies to task history (#13444)
This commit is contained in:
@@ -308,6 +308,8 @@ export default function scoreTask (options = {}, req = {}, analytics) {
|
|||||||
const historyEntry = {
|
const historyEntry = {
|
||||||
date: Number(new Date()),
|
date: Number(new Date()),
|
||||||
value: task.value,
|
value: task.value,
|
||||||
|
isDue: task.isDue,
|
||||||
|
completed: true,
|
||||||
};
|
};
|
||||||
task.history.push(historyEntry);
|
task.history.push(historyEntry);
|
||||||
} else if (direction === 'down') {
|
} else if (direction === 'down') {
|
||||||
|
|||||||
@@ -432,6 +432,8 @@ export function cron (options = {}) {
|
|||||||
task.history.push({
|
task.history.push({
|
||||||
date: Number(new Date()),
|
date: Number(new Date()),
|
||||||
value: task.value,
|
value: task.value,
|
||||||
|
isDue: task.isDue,
|
||||||
|
completed: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user