mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 23:42:12 +00:00
Merge pull request #3304 from jbutz/todo_archive_flag_ui
feat(archive_todo): Update batchUpdate
This commit is contained in:
commit
6d00289d99
1 changed files with 1 additions and 1 deletions
|
|
@ -444,7 +444,7 @@ api.batchUpdate = function(req, res, next) {
|
|||
}else if(response.wasModified){
|
||||
// Preen 3-day past-completed To-Dos from Angular & mobile app
|
||||
response.todos = _.where(response.todos, function(t) {
|
||||
return !t.completed || (t.challenge && t.challenge.id) || moment(t.dateCompleted).isAfter(moment().subtract('days',3));
|
||||
return !t.completed || (t.challenge && t.challenge.id) || !t.archived;
|
||||
});
|
||||
res.json(200, response);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue