]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/worker/workers/image-downloader.ts
Process images in a dedicated worker
[github/Chocobozzz/PeerTube.git] / server / lib / worker / workers / image-downloader.ts
index 8d4a6b37ec445a9cc6147be448ec22f07fec0125..4b32f723ef2bc67434f7183a35662c4e1f42189e 100644 (file)
@@ -18,7 +18,7 @@ async function downloadImage (options: {
   const destPath = join(destDir, destName)
 
   try {
-    await processImage(tmpPath, destPath, size)
+    await processImage({ path: tmpPath, destination: destPath, newSize: size })
   } catch (err) {
     await remove(tmpPath)