mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
include check option when compiling
This commit is contained in:
parent
29d333ae51
commit
e0d5075fdb
3 changed files with 4 additions and 0 deletions
|
@ -147,6 +147,7 @@ module.exports = ClsiManager =
|
|||
timeout: options.timeout
|
||||
imageName: project.imageName
|
||||
draft: !!options.draft
|
||||
check: options.check
|
||||
rootResourcePath: rootResourcePath
|
||||
resources: resources
|
||||
}
|
||||
|
|
|
@ -29,6 +29,8 @@ module.exports = CompileController =
|
|||
options.compiler = req.body.compiler
|
||||
if req.body?.draft
|
||||
options.draft = req.body.draft
|
||||
if req.body?.check
|
||||
options.check = if req.body.check is "error" then "error" else "warn"
|
||||
logger.log {options:options, project_id:project_id, user_id:user_id}, "got compile request"
|
||||
CompileManager.compile project_id, user_id, options, (error, status, outputFiles, clsiServerId, limits, validationProblems) ->
|
||||
return next(error) if error?
|
||||
|
|
|
@ -86,6 +86,7 @@ define [
|
|||
return $http.post url, {
|
||||
rootDoc_id: options.rootDocOverride_id or null
|
||||
draft: $scope.draft
|
||||
check: if options.check then "error" else "warn"
|
||||
_csrf: window.csrfToken
|
||||
}, {params: params}
|
||||
|
||||
|
|
Loading…
Reference in a new issue