fix undefined next

v1.18.x
barisusakli 9 years ago
parent 88ded50115
commit f0cc9120ba

@ -213,7 +213,7 @@ module.exports = function(Groups) {
Groups.destroy(groupName, callback);
} else {
if (parseInt(groupData.hidden, 10) !== 1) {
db.sortedSetAdd('groups:visible:memberCount', groupData.memberCount, groupName, next);
db.sortedSetAdd('groups:visible:memberCount', groupData.memberCount, groupName, callback);
} else {
callback();
}

Loading…
Cancel
Save