mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-24 01:23:20 +00:00
added default opts for users compile features
This commit is contained in:
parent
1506f86a5f
commit
5a4a90924b
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ module.exports = CompileController =
|
|||
AuthenticationController.getLoggedInUserId req, (error, user_id) ->
|
||||
return next(error) if error?
|
||||
UserGetter.getUser user_id, {"features.compileGroup":1, "features.compileTimeout":1}, (err, user)->
|
||||
settingsOverride.timeout = user.features.compileTimeout
|
||||
settingsOverride.compiler = user.features.compileGroup
|
||||
settingsOverride.timeout = user.features.compileTimeout || Settings.defaultFeatures.compileTimeout
|
||||
settingsOverride.compiler = user.features.compileGroup || Settings.defaultFeatures.compileGroup
|
||||
CompileManager.compile project_id, user_id, { isAutoCompile, settingsOverride }, (error, status, outputFiles) ->
|
||||
return next(error) if error?
|
||||
res.contentType("application/json")
|
||||
|
|
Loading…
Reference in a new issue