mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
[#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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user