mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +01:00
little tweak to user search show timing and 10 users, sort after slicing
This commit is contained in:
@@ -91,7 +91,7 @@ SocketAdmin.user.search = function(socket, username, callback) {
|
||||
});
|
||||
}
|
||||
|
||||
async.each(data, isAdmin, function(err) {
|
||||
async.each(data.users, isAdmin, function(err) {
|
||||
callback(err, data);
|
||||
});
|
||||
});
|
||||
@@ -126,7 +126,7 @@ SocketAdmin.categories.search = function(socket, data, callback) {
|
||||
cid = data.cid;
|
||||
|
||||
user.search(username, function(err, data) {
|
||||
async.map(data, function(userObj, next) {
|
||||
async.map(data.users, function(userObj, next) {
|
||||
CategoryTools.privileges(cid, userObj.uid, function(err, privileges) {
|
||||
if(err) {
|
||||
return next(err);
|
||||
|
||||
Reference in New Issue
Block a user