Explorar o código

added missing originalFsPath

Henry Oswald %!s(int64=10) %!d(string=hai) anos
pai
achega
b166c86197
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      services/filestore/app/coffee/FileHandler.coffee

+ 2 - 0
services/filestore/app/coffee/FileHandler.coffee

@@ -47,10 +47,12 @@ module.exports =
 
 
 	_getConvertedFileAndCache: (bucket, key, convertedKey, opts, callback)->
 	_getConvertedFileAndCache: (bucket, key, convertedKey, opts, callback)->
 		convertedFsPath = ""
 		convertedFsPath = ""
+		originalFsPath = ""
 		async.series [
 		async.series [
 			(cb) =>
 			(cb) =>
 				@_convertFile bucket, key, opts, (err, fileSystemPath, originalFsPath) ->
 				@_convertFile bucket, key, opts, (err, fileSystemPath, originalFsPath) ->
 					convertedFsPath = fileSystemPath
 					convertedFsPath = fileSystemPath
+					originalFsPath = originalFsPath
 					cb err
 					cb err
 			(cb)->
 			(cb)->
 				ImageOptimiser.compressPng convertedFsPath, cb
 				ImageOptimiser.compressPng convertedFsPath, cb