mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix live update error
This commit is contained in:
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
Block a user