mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
use build_id and user_id instead of build and user
This commit is contained in:
parent
634c774592
commit
e6dcce21fd
2 changed files with 9 additions and 9 deletions
|
@ -104,12 +104,12 @@ module.exports = CompileController =
|
||||||
|
|
||||||
getFileFromClsi: (req, res, next = (error) ->) ->
|
getFileFromClsi: (req, res, next = (error) ->) ->
|
||||||
project_id = req.params.Project_id
|
project_id = req.params.Project_id
|
||||||
build = req.params.build
|
build_id = req.params.build_id
|
||||||
user = req.params.user
|
user_id = req.params.user_id
|
||||||
if user? and build?
|
if user_id? and build_id?
|
||||||
url = "/project/#{project_id}/user/#{user}/build/#{build}/output/#{req.params.file}"
|
url = "/project/#{project_id}/user/#{user_id}/build/#{build_id}/output/#{req.params.file}"
|
||||||
else if build?
|
else if build_id?
|
||||||
url = "/project/#{project_id}/build/#{build}/output/#{req.params.file}"
|
url = "/project/#{project_id}/build/#{build_id}/output/#{req.params.file}"
|
||||||
else
|
else
|
||||||
url = "/project/#{project_id}/output/#{req.params.file}"
|
url = "/project/#{project_id}/output/#{req.params.file}"
|
||||||
CompileController.proxyToClsi(project_id, url, req, res, next)
|
CompileController.proxyToClsi(project_id, url, req, res, next)
|
||||||
|
|
|
@ -118,7 +118,7 @@ module.exports = class Router
|
||||||
((req, res, next) ->
|
((req, res, next) ->
|
||||||
params =
|
params =
|
||||||
"Project_id": req.params[0]
|
"Project_id": req.params[0]
|
||||||
"build": req.params[1]
|
"build_id": req.params[1]
|
||||||
"file": req.params[2]
|
"file": req.params[2]
|
||||||
req.params = params
|
req.params = params
|
||||||
next()
|
next()
|
||||||
|
@ -129,8 +129,8 @@ module.exports = class Router
|
||||||
((req, res, next) ->
|
((req, res, next) ->
|
||||||
params =
|
params =
|
||||||
"Project_id": req.params[0]
|
"Project_id": req.params[0]
|
||||||
"user": req.params[1]
|
"user_id": req.params[1]
|
||||||
"build": req.params[2]
|
"build_id": req.params[2]
|
||||||
"file": req.params[3]
|
"file": req.params[3]
|
||||||
req.params = params
|
req.params = params
|
||||||
next()
|
next()
|
||||||
|
|
Loading…
Reference in a new issue