mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Merge branch 'develop' into api-v3
This commit is contained in:
@@ -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
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user