X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Fjob-queue%2Fhandlers%2Fvideo-file.ts;h=3a867b77fee2bb70f633fd256f374f4dfa4cd504;hb=374c1db98cf22527f5b362c70d3c50e3be4c8885;hp=04983155ce7a462f9c691beb457b16e636a08e97;hpb=a975517c6858df07c179253a4c41701fd2199225;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/job-queue/handlers/video-file.ts b/server/lib/job-queue/handlers/video-file.ts index 04983155c..3a867b77f 100644 --- a/server/lib/job-queue/handlers/video-file.ts +++ b/server/lib/job-queue/handlers/video-file.ts @@ -140,7 +140,7 @@ async function onVideoFileOptimizerSuccess (videoArg: VideoModel, payload: Video let videoPublished = false if (resolutionsEnabled.length !== 0) { - const tasks: Bluebird>[] = [] + const tasks: (Bluebird> | Promise>)[] = [] for (const resolution of resolutionsEnabled) { const dataInput = {