Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit d780141

Browse files
Merge pull request #11 from SpringRoll/bugfix/group-permission-fix
Updated model for groups so that when deleting a single group it does…
2 parents 1b8da29 + 2cca8a8 commit d780141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/game.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ GameSchema.statics.removeGroup = function(ids, groupId, callback)
441441
}
442442
return this.update(
443443
query,
444-
{$pull: {groups: {"groups.group" : groupId }}},
444+
{$pull: {groups: {group : groupId }}},
445445
{multi: true},
446446
callback
447447
);

0 commit comments

Comments
 (0)