mirror of https://github.com/Chocobozzz/PeerTube
Fix live update error
parent
219e18c944
commit
907ba7e270
|
@ -147,7 +147,9 @@ async function updateVideo (req: express.Request, res: express.Response) {
|
||||||
return { videoInstanceUpdated, isNewVideo }
|
return { videoInstanceUpdated, isNewVideo }
|
||||||
})
|
})
|
||||||
|
|
||||||
if (videoInfoToUpdate.name) await updateTorrentsMetadata(videoInstanceUpdated)
|
if (videoInstanceUpdated.isLive !== true && videoInfoToUpdate.name) {
|
||||||
|
await updateTorrentsMetadata(videoInstanceUpdated)
|
||||||
|
}
|
||||||
|
|
||||||
await sequelizeTypescript.transaction(t => federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, t))
|
await sequelizeTypescript.transaction(t => federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, t))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue