mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
fix double callback in precompile resources check
This commit is contained in:
parent
e9114551ba
commit
bd005d7bb6
1 changed files with 11 additions and 11 deletions
|
@ -38,17 +38,17 @@ module.exports = ClsiManager =
|
||||||
if validationProblems?
|
if validationProblems?
|
||||||
logger.log project_id:project_id, validationProblems:validationProblems, "problems with users latex before compile was attempted"
|
logger.log project_id:project_id, validationProblems:validationProblems, "problems with users latex before compile was attempted"
|
||||||
return callback(null, "validation-problems", null, null, validationProblems)
|
return callback(null, "validation-problems", null, null, validationProblems)
|
||||||
ClsiManager._postToClsi project_id, user_id, req, options.compileGroup, (error, response) ->
|
ClsiManager._postToClsi project_id, user_id, req, options.compileGroup, (error, response) ->
|
||||||
if error?
|
if error?
|
||||||
logger.err err:error, project_id:project_id, "error sending request to clsi"
|
logger.err err:error, project_id:project_id, "error sending request to clsi"
|
||||||
return callback(error)
|
return callback(error)
|
||||||
logger.log project_id: project_id, outputFilesLength: response?.outputFiles?.length, status: response?.status, compile_status: response?.compile?.status, "received compile response from CLSI"
|
logger.log project_id: project_id, outputFilesLength: response?.outputFiles?.length, status: response?.status, compile_status: response?.compile?.status, "received compile response from CLSI"
|
||||||
ClsiCookieManager._getServerId project_id, (err, clsiServerId)->
|
ClsiCookieManager._getServerId project_id, (err, clsiServerId)->
|
||||||
if err?
|
if err?
|
||||||
logger.err err:err, project_id:project_id, "error getting server id"
|
logger.err err:err, project_id:project_id, "error getting server id"
|
||||||
return callback(err)
|
return callback(err)
|
||||||
outputFiles = ClsiManager._parseOutputFiles(project_id, response?.compile?.outputFiles)
|
outputFiles = ClsiManager._parseOutputFiles(project_id, response?.compile?.outputFiles)
|
||||||
callback(null, response?.compile?.status, outputFiles, clsiServerId)
|
callback(null, response?.compile?.status, outputFiles, clsiServerId)
|
||||||
|
|
||||||
stopCompile: (project_id, user_id, options, callback = (error) ->) ->
|
stopCompile: (project_id, user_id, options, callback = (error) ->) ->
|
||||||
compilerUrl = @_getCompilerUrl(options?.compileGroup, project_id, user_id, "compile/stop")
|
compilerUrl = @_getCompilerUrl(options?.compileGroup, project_id, user_id, "compile/stop")
|
||||||
|
|
Loading…
Reference in a new issue