diff --git a/app/models/game.js b/app/models/game.js index 8107c77..837c3a4 100644 --- a/app/models/game.js +++ b/app/models/game.js @@ -441,7 +441,7 @@ GameSchema.statics.removeGroup = function(ids, groupId, callback) } return this.update( query, - {$pull: {groups: {"groups.group" : groupId }}}, + {$pull: {groups: {group : groupId }}}, {multi: true}, callback );