mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
change getUserData to return err
This commit is contained in:
@@ -29,9 +29,7 @@ var async = require('async'),
|
||||
if (err) return next(err);
|
||||
|
||||
async.map(uids, function(uid, next) {
|
||||
User.getUserData(uid, function(data) {
|
||||
next(null, data);
|
||||
});
|
||||
User.getUserData(uid, next);
|
||||
}, function(err, users) {
|
||||
next(err, users);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user