[#1711] got it! task.*.history & user.history as defined schemas was the

problem, since they're arrays of >100 each
This commit is contained in:
Tyler Renelle
2013-11-02 12:49:08 -07:00
parent 01536a2e29
commit 838108d579
4 changed files with 8 additions and 25 deletions

View File

@@ -41,7 +41,7 @@ ChallengeSchema.methods.toJSON = function(){
doc._isMember = this._isMember;
_.each(['habits','dailys','todos','rewards'], function(type){
_.each(doc[type],function(task){
task.id = task._id;
task.id = task.id || task._id;
})
})
return doc;