Просмотр исходного кода

fix the download and compile endpoint used by zip

Henry Oswald 10 лет назад
Родитель
Сommit
8a9a65a80a

+ 1 - 1
services/web/app/coffee/Features/Compile/CompileController.coffee

@@ -101,7 +101,7 @@ module.exports = CompileController =
 					logger.err err:err, project_id:project_id, "something went wrong compile and downloading pdf"
 					res.sendStatus 500
 				url = "/project/#{project_id}/output/output.pdf"
-				CompileController.proxyToClsi project_id, user_id, url, req, res, next
+				CompileController.proxyToClsi project_id, url, req, res, next
 
 	getFileFromClsi: (req, res, next = (error) ->) ->
 		project_id = req.params.Project_id

+ 2 - 2
services/web/test/UnitTests/coffee/Compile/CompileControllerTests.coffee

@@ -352,9 +352,9 @@ describe "CompileController", ->
 
 		it "should proxy the res to the clsi with correct url", (done)->
 			@CompileController.compileAndDownloadPdf @req, @res
-			sinon.assert.calledWith @CompileController.proxyToClsi, @project_id, @user_id, "/project/#{@project_id}/output/output.pdf", @req, @res
+			sinon.assert.calledWith @CompileController.proxyToClsi, @project_id, "/project/#{@project_id}/output/output.pdf", @req, @res
 
-			@CompileController.proxyToClsi.calledWith(@project_id, @user_id, "/project/#{@project_id}/output/output.pdf", @req, @res).should.equal true
+			@CompileController.proxyToClsi.calledWith(@project_id, "/project/#{@project_id}/output/output.pdf", @req, @res).should.equal true
 			done()
 
 	describe "wordCount", ->