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