]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/job-queue/handlers/video-file.ts
Upgrade server dependencies
[github/Chocobozzz/PeerTube.git] / server / lib / job-queue / handlers / video-file.ts
index 04983155ce7a462f9c691beb457b16e636a08e97..3a867b77fee2bb70f633fd256f374f4dfa4cd504 100644 (file)
@@ -140,7 +140,7 @@ async function onVideoFileOptimizerSuccess (videoArg: VideoModel, payload: Video
     let videoPublished = false
 
     if (resolutionsEnabled.length !== 0) {
-      const tasks: Bluebird<Bull.Job<any>>[] = []
+      const tasks: (Bluebird<Bull.Job<any>> | Promise<Bull.Job<any>>)[] = []
 
       for (const resolution of resolutionsEnabled) {
         const dataInput = {