Merge pull request #1829 from akhoury/master

Group.join() callback made optional
v1.18.x
Barış Soner Uşaklı 11 years ago
commit 7f093bccfd

@ -259,6 +259,8 @@
};
Groups.join = function(groupName, uid, callback) {
callback = callback || function() {};
Groups.exists(groupName, function(err, exists) {
if (exists) {
db.setAdd('group:' + groupName + ':members', uid, callback);

Loading…
Cancel
Save