mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
add clearCompletedTodos route with tests, add test for getting completed todos, misc fixes
This commit is contained in:
@@ -34,7 +34,7 @@ export default function cronMiddleware (req, res, next) {
|
||||
// Run cron
|
||||
cron({user, tasksByType, now, daysMissed, analytics});
|
||||
|
||||
// Clean completed todos - 30 days for free users, 90 for subscribers
|
||||
// Clear old completed todos - 30 days for free users, 90 for subscribers
|
||||
// Do not delete challenges completed todos TODO unless the task is broken?
|
||||
Task.remove({
|
||||
userId: user._id,
|
||||
|
||||
Reference in New Issue
Block a user