Fix next -> callback

This commit is contained in:
James Allen 2018-01-11 14:11:44 +00:00
parent 17a5dfa5a5
commit 8edef2f94d

View file

@ -60,7 +60,7 @@ module.exports = HistoryManager =
user_ids.add user user_ids.add user
user_ids = Array.from(user_ids) user_ids = Array.from(user_ids)
UserGetter.getUsers user_ids, { first_name: 1, last_name: 1, email: 1 }, (error, users_array) -> UserGetter.getUsers user_ids, { first_name: 1, last_name: 1, email: 1 }, (error, users_array) ->
return next(error) if error? return callback(error) if error?
users = {} users = {}
for user in users_array or [] for user in users_array or []
users[user._id.toString()] = HistoryManager._userView(user) users[user._id.toString()] = HistoryManager._userView(user)