Groups.getGroupsAndMembers

v1.18.x
psychobunny 9 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({
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) {

Loading…
Cancel
Save