]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/index.ts
Fix separate SQL query for video get
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / index.ts
index dcd6194ae96f41b298b1480bd265d041e75ae14e..e89315930c9355542e69e7fb0f9eca42cb0d308d 100644 (file)
@@ -222,7 +222,7 @@ async function addVideo (req: express.Request, res: express.Response) {
   })
 
   // Create the torrent file
-  await createTorrentAndSetInfoHash(video, video, videoFile)
+  await createTorrentAndSetInfoHash(video, videoFile)
 
   const { videoCreated } = await sequelizeTypescript.transaction(async t => {
     const sequelizeOptions = { transaction: t }