Groups.getGroupsAndMembers

v1.18.x
psychobunny 10 years ago
parent 5ff2eccbd2
commit 2516be620b

@ -80,6 +80,15 @@ var async = require('async'),
}); });
} }
Groups.getGroupsAndMembers(groupNames, callback);
}
};
Groups.getGroups = function(set, start, stop, callback) {
db.getSortedSetRevRange(set, start, stop, callback);
};
Groups.getGroupsAndMembers = function(groupNames, callback) {
async.parallel({ async.parallel({
groups: function(next) { groups: function(next) {
Groups.getGroupsData(groupNames, next); Groups.getGroupsData(groupNames, next);
@ -102,11 +111,6 @@ var async = require('async'),
callback(null, data.groups); callback(null, data.groups);
}); });
}
};
Groups.getGroups = function(set, start, stop, callback) {
db.getSortedSetRevRange(set, start, stop, callback);
}; };
Groups.get = function(groupName, options, callback) { Groups.get = function(groupName, options, callback) {

Loading…
Cancel
Save