From bc22a371d0a25ed2e586b577a3c076fc5c7eb5a3 Mon Sep 17 00:00:00 2001 From: James Allen Date: Thu, 29 May 2014 15:49:48 +0100 Subject: [PATCH] Explicitly look for output.pdf file, not any pdf --- services/clsi/app/coffee/CompileController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/clsi/app/coffee/CompileController.coffee b/services/clsi/app/coffee/CompileController.coffee index cddb56b1ca..c73820206a 100644 --- a/services/clsi/app/coffee/CompileController.coffee +++ b/services/clsi/app/coffee/CompileController.coffee @@ -24,7 +24,7 @@ module.exports = CompileController = else status = "failure" for file in outputFiles - if file.type == "pdf" + if file.path?.match(/output\.pdf$/) status = "success" timer.done()