From d26c6b933e916b898a79d5055b9945da80c1d280 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 19 May 2016 16:23:07 +0100 Subject: [PATCH] return the file path in the output file list for easy lookup --- app/coffee/CompileController.coffee | 1 + test/unit/coffee/CompileControllerTests.coffee | 1 + 2 files changed, 2 insertions(+) diff --git a/app/coffee/CompileController.coffee b/app/coffee/CompileController.coffee index 62b1020..5cc9a5e 100644 --- a/app/coffee/CompileController.coffee +++ b/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 } diff --git a/test/unit/coffee/CompileControllerTests.coffee b/test/unit/coffee/CompileControllerTests.coffee index 6a18ce7..d8d6e86 100644 --- a/test/unit/coffee/CompileControllerTests.coffee +++ b/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 )