diff --git a/src/groups.js b/src/groups.js index 2a1587fd98..49dd25e4a2 100644 --- a/src/groups.js +++ b/src/groups.js @@ -417,6 +417,8 @@ }; Groups.leave = function(groupName, uid, callback) { + callback = callback || function() {}; + db.setRemove('group:' + groupName + ':members', uid, function(err) { if (err) { return callback(err);