fixing groups.leave

v1.18.x
psychobunny 10 years ago
parent 6f3cb55709
commit 16accf6cd0

@ -417,6 +417,8 @@
}; };
Groups.leave = function(groupName, uid, callback) { Groups.leave = function(groupName, uid, callback) {
callback = callback || function() {};
db.setRemove('group:' + groupName + ':members', uid, function(err) { db.setRemove('group:' + groupName + ':members', uid, function(err) {
if (err) { if (err) {
return callback(err); return callback(err);

Loading…
Cancel
Save