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

return the file path in the output file list for easy lookup

Brian Gough 10 лет назад
Родитель
Сommit
e286aede4e

+ 1 - 0
services/clsi/app/coffee/CompileController.coffee

@@ -34,6 +34,7 @@ module.exports = CompileController =
 							error:  error?.message or error
 							outputFiles: outputFiles.map (file) ->
 								url: "#{Settings.apis.clsi.url}/project/#{request.project_id}/output/#{file.path}"
+								path: file.path
 								type: file.type
 								build: file.build
 					}

+ 1 - 0
services/clsi/test/unit/coffee/CompileControllerTests.coffee

@@ -76,6 +76,7 @@ describe "CompileController", ->
 							error: null
 							outputFiles: @output_files.map (file) =>
 								url: "#{@Settings.apis.clsi.url}/project/#{@project_id}/output/#{file.path}"
+								path: file.path
 								type: file.type
 								build: file.build
 					)