mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Fix next -> callback
This commit is contained in:
parent
17a5dfa5a5
commit
8edef2f94d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue