mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
* Implemented repeat after completion * Added tests for repeat after completion in shouldDo.test.js * Remove lastTicked * Undoes removal of website/client/README.md
This commit is contained in:
@@ -306,6 +306,7 @@ export function cron (options = {}) {
|
||||
if (dailiesDaysMissed > 1) dailiesDaysMissed = 1;
|
||||
|
||||
if (completed) {
|
||||
task.lastCompleted = moment(now).subtract({days: 1}).toDate();
|
||||
dailyChecked += 1;
|
||||
if (!atLeastOneDailyDue) { // only bother checking until the first thing is found
|
||||
let thatDay = moment(now).subtract({days: daysMissed});
|
||||
|
||||
Reference in New Issue
Block a user