@ -1147,6 +1147,8 @@ var async = require('async'),
return Groups.getMembers(data.groupName, 0, -1, callback);
}
query = query.toLowerCase();
async.waterfall([
function(next) {
Groups.getMembers(data.groupName, 0, -1, next);
@ -77,6 +77,7 @@ module.exports = function(User) {
if (!query) {
return callback(null, []);
var min = query;
var max = query.substr(0, query.length - 1) + String.fromCharCode(query.charCodeAt(query.length - 1) + 1);