|
|
|
@ -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({
|
|
|
|
|
groups: function(next) {
|
|
|
|
|
Groups.getGroupsData(groupNames, next);
|
|
|
|
@ -102,11 +111,6 @@ var async = require('async'),
|
|
|
|
|
|
|
|
|
|
callback(null, data.groups);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Groups.getGroups = function(set, start, stop, callback) {
|
|
|
|
|
db.getSortedSetRevRange(set, start, stop, callback);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Groups.get = function(groupName, options, callback) {
|
|
|
|
|