mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 00:00:59 +00:00
make code clearer when compilation is per-user
This commit is contained in:
parent
55a8e3cffe
commit
634c774592
1 changed files with 3 additions and 2 deletions
|
@ -37,8 +37,9 @@ module.exports = CompileManager =
|
|||
return callback(error) if error?
|
||||
for key, value of limits
|
||||
options[key] = value
|
||||
user_id = undefined if not options.isolated
|
||||
ClsiManager.sendRequest project_id, user_id, options, (error, status, outputFiles, clsiServerId) ->
|
||||
# only pass user_id down to clsi if this is a per-user compile
|
||||
compileAsUser = if options.isolated then user_id else undefined
|
||||
ClsiManager.sendRequest project_id, compileAsUser, options, (error, status, outputFiles, clsiServerId) ->
|
||||
return callback(error) if error?
|
||||
logger.log files: outputFiles, "output files"
|
||||
callback(null, status, outputFiles, clsiServerId, limits)
|
||||
|
|
Loading…
Reference in a new issue