]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/videos/get.ts
Avoid concurrency issue on transcoding
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / videos / get.ts
index b74df132c0cac31856353fab687a61410c47195a..14ba550346d5722fd13fe7589b0768df0726971c 100644 (file)
@@ -107,7 +107,7 @@ async function scheduleRefresh (video: MVideoThumbnail, fetchType: VideoLoadByUr
     return refreshVideoIfNeeded(refreshOptions)
   }
 
-  await JobQueue.Instance.createJobWithPromise({
+  await JobQueue.Instance.createJob({
     type: 'activitypub-refresher',
     payload: { type: 'video', url: video.url }
   })