Node.js based forum software built for the modern web
if a group is deleted, flush the owner and pending sets, too
Julian Lam65537d997f41
diff --git a/src/groups.js b/src/groups.jsindex 6286fe7a9d..f8d5470035 100644--- a/src/groups.js+++ b/src/groups.js@@ -500,15 +500,11 @@ var async = require('async'),Groups.destroy = function(groupName, callback) {async.parallel([- function(next) {- db.delete('group:' + groupName, next);- },- function(next) {- db.setRemove('groups', groupName, next);- },- function(next) {- db.delete('group:' + groupName + ':members', next);- },+ async.apply(db.delete, 'group:' + groupName),+ async.apply(db.setRemove, 'groups', groupName),+ async.apply(db.delete, 'group:' + groupName + ':members'),+ async.apply(db.delete, 'group:' + groupName + ':pending'),+ async.apply(db.delete, 'group:' + groupName + ':owners'),function(next) {db.getSetMembers('groups', function(err, groups) {if (err) {