diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-08 15:48:17 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-09 09:18:07 +0200 |
commit | bd911b54b555b11df7e9849cf92d358bccfecf6e (patch) | |
tree | 23e94b4acbe6819fedc1cb5e067b700cbdd880c3 /scripts | |
parent | 5a921e7b74910414626bfc9672b857e987e3ebed (diff) | |
download | PeerTube-bd911b54b555b11df7e9849cf92d358bccfecf6e.tar.gz PeerTube-bd911b54b555b11df7e9849cf92d358bccfecf6e.tar.zst PeerTube-bd911b54b555b11df7e9849cf92d358bccfecf6e.zip |
Use bullmq job dependency
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/create-import-video-file-job.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create-import-video-file-job.ts b/scripts/create-import-video-file-job.ts index 97e9c7933..cf974f240 100644 --- a/scripts/create-import-video-file-job.ts +++ b/scripts/create-import-video-file-job.ts | |||
@@ -45,6 +45,6 @@ async function run () { | |||
45 | } | 45 | } |
46 | 46 | ||
47 | JobQueue.Instance.init(true) | 47 | JobQueue.Instance.init(true) |
48 | await JobQueue.Instance.createJobWithPromise({ type: 'video-file-import', payload: dataInput }) | 48 | await JobQueue.Instance.createJob({ type: 'video-file-import', payload: dataInput }) |
49 | console.log('Import job for video %s created.', video.uuid) | 49 | console.log('Import job for video %s created.', video.uuid) |
50 | } | 50 | } |