From d41bf2e9749d5c92eccf5e0c49374f69117506df Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 14 Dec 2016 18:11:28 +0000 Subject: [PATCH] result path not in final cb --- services/filestore/app/coffee/HealthCheckController.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/filestore/app/coffee/HealthCheckController.coffee b/services/filestore/app/coffee/HealthCheckController.coffee index 252a6ada96..feb8c4c659 100644 --- a/services/filestore/app/coffee/HealthCheckController.coffee +++ b/services/filestore/app/coffee/HealthCheckController.coffee @@ -29,9 +29,9 @@ checkFileConvert = (callback)-> async.waterfall [ (cb)-> fs.copy("./tiny.pdf", imgPath, cb) - (cb)-> fileConverter.thumbnail "./tiny.pdf", cb + (cb)-> fileConverter.thumbnail imgPath, cb (resultPath, cb)-> fs.unlink resultPath, cb - (resultPath, cb)-> fs.unlink imgPath, cb + (cb)-> fs.unlink imgPath, cb ], callback