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