mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 18:22:21 +00:00
Revert "feat(todo_archive)" (see http://goo.gl/mCygbz)
This commit is contained in:
parent
01c9307cd1
commit
e77f667a98
2 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,6 @@ var TodoSchema = new Schema(
|
|||
_.defaults({
|
||||
type: {type:String, 'default': 'todo'},
|
||||
completed: {type: Boolean, 'default': false},
|
||||
archived: {type: Boolean, 'default': false},
|
||||
dateCompleted: Date,
|
||||
date: String, // due date for todos // FIXME we're getting parse errors, people have stored as "today" and "3/13". Need to run a migration & put this back to type: Date
|
||||
collapseChecklist:collapseChecklist,
|
||||
|
|
|
|||
Loading…
Reference in a new issue