Merge branch 'develop' into api-v3

This commit is contained in:
Blade Barringer
2015-12-29 08:07:04 -06:00
3 changed files with 3 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ preenHistory = function(history) {
*/
api.preenTodos = function(tasks) {
return _.where(tasks, function(t) {
return _.filter(tasks, function(t) {
return !t.completed || (t.challenge && t.challenge.id) || moment(t.dateCompleted).isAfter(moment().subtract({
days: 3
}));