From 16accf6cd04eb5fba6b96e9ee742857fbd0f59ed Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 17 Sep 2014 18:32:32 -0400 Subject: [PATCH] fixing groups.leave --- src/groups.js | 2 ++ 1 file changed, 2 insertions(+) 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);