diff --git a/services/filestore/app/coffee/FileHandler.coffee b/services/filestore/app/coffee/FileHandler.coffee index e0680aec3f..93cad984dd 100644 --- a/services/filestore/app/coffee/FileHandler.coffee +++ b/services/filestore/app/coffee/FileHandler.coffee @@ -47,10 +47,12 @@ module.exports = _getConvertedFileAndCache: (bucket, key, convertedKey, opts, callback)-> convertedFsPath = "" + originalFsPath = "" async.series [ (cb) => @_convertFile bucket, key, opts, (err, fileSystemPath, originalFsPath) -> convertedFsPath = fileSystemPath + originalFsPath = originalFsPath cb err (cb)-> ImageOptimiser.compressPng convertedFsPath, cb