challenges: pass down if user is member of group (group._isMember) for

performance. some bug fixes
This commit is contained in:
Tyler Renelle
2013-10-29 12:26:13 -07:00
parent 219318b405
commit be657a76e0
5 changed files with 20 additions and 8 deletions
+1
View File
@@ -69,6 +69,7 @@ GroupSchema.pre('save', function(next){
GroupSchema.methods.toJSON = function(){
var doc = this.toObject();
removeDuplicates(doc);
doc._isMember = this._isMember;
return doc;
}