Revert "feat(todo_archive)" (see http://goo.gl/mCygbz)

This commit is contained in:
Tyler Renelle
2014-05-15 23:47:38 -06:00
parent 01c9307cd1
commit e77f667a98
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -442,7 +442,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) || !t.archived;
return !t.completed || (t.challenge && t.challenge.id) || moment(t.dateCompleted).isAfter(moment().subtract('days',3));
});
res.json(200, response);