updating groups so that members leave a group when it is deleted

This commit is contained in:
Julian Lam
2014-03-21 09:27:13 -04:00
parent ce867aec53
commit 4701eb1cee
3 changed files with 20 additions and 2 deletions

View File

@@ -178,6 +178,9 @@
},
function(next) {
db.setRemove('groups', groupName, next);
},
function(next) {
db.delete('group:' + groupName + ':members', next);
}
], callback);
};