Move to eslint
[oweals/peertube.git] / server / lib / job-queue / handlers / video-import.ts
index 1fca17584f83408c9a84dc7c556998172155fc6f..09f225cec8311b6c06fd3608e1b3cfceb7aeb16d 100644 (file)
@@ -221,7 +221,7 @@ async function processFile (downloader: () => Promise<string>, videoImport: MVid
         isNewVideo: true
       }
 
-      await JobQueue.Instance.createJob({ type: 'video-transcoding', payload: dataInput })
+      await JobQueue.Instance.createJobWithPromise({ type: 'video-transcoding', payload: dataInput })
     }
 
   } catch (err) {