mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
avoid duplicate filling of UserInfo in getDocUpdates
This commit is contained in:
@@ -119,9 +119,7 @@ module.exports = UpdatesManager =
|
||||
#console.log "options", options
|
||||
PackManager.getOpsByVersionRange project_id, doc_id, options.from, options.to, (error, updates) ->
|
||||
return callback(error) if error?
|
||||
UpdatesManager.fillUserInfo updates, (err, results) ->
|
||||
return callback(err) if err?
|
||||
callback null, results
|
||||
callback null, updates
|
||||
|
||||
getDocUpdatesWithUserInfo: (project_id, doc_id, options = {}, callback = (error, updates) ->) ->
|
||||
UpdatesManager.getDocUpdates project_id, doc_id, options, (error, updates) ->
|
||||
|
||||
Reference in New Issue
Block a user