X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fcreate-transcoding-job.ts;h=fec58da2ee667007c2388af7d275a293011c8911;hb=36004aa7b0de5cb69a452090770221b192a78eb8;hp=27170299d657e76a94d9254d6dd9ec1b81c98498;hpb=dee6fe1e4f5c024fd387e8c2b306c174b24aa8b3;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts index 27170299d..fec58da2e 100755 --- a/scripts/create-transcoding-job.ts +++ b/scripts/create-transcoding-job.ts @@ -72,7 +72,7 @@ async function run () { await JobQueue.Instance.init() for (const d of dataInput) { - await JobQueue.Instance.createJob({ type: 'video-transcoding', payload: d }) + await JobQueue.Instance.createJobWithPromise({ type: 'video-transcoding', payload: d }) console.log('Transcoding job for video %s created.', video.uuid) } }