Merge pull request #1650 from HabitRPG/paglias/fix-1647

Fix #1647
This commit is contained in:
Matteo Pagliazzi
2013-10-27 02:58:23 -07:00
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -52,7 +52,10 @@ var GroupSchema = new Schema({
balance: Number,
logo: String,
leaderMessage: String
}, {strict: 'throw'});
}, {
strict: 'throw',
minimize: false // So empty objects are returned
});
/**
+2 -1
View File
@@ -226,7 +226,8 @@ var UserSchema = new Schema({
*/
}, {
strict: true
strict: true,
minimize: false // So empty objects are returned
});
// Legacy Derby Function?