aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-03-04 17:00:53 +0100
committerChocobozzz <me@florianbigard.com>2022-03-04 17:00:53 +0100
commit907ba7e270b78507a8d9b6aa20da0f6231c37d25 (patch)
tree7e00509fad1b0dc6e61cd2ba034e942e534fdd60 /server/controllers/api
parent219e18c944e5bc0e9620af96bb54451fa86e39ad (diff)
downloadPeerTube-907ba7e270b78507a8d9b6aa20da0f6231c37d25.tar.gz
PeerTube-907ba7e270b78507a8d9b6aa20da0f6231c37d25.tar.zst
PeerTube-907ba7e270b78507a8d9b6aa20da0f6231c37d25.zip
Fix live update error
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/videos/update.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/controllers/api/videos/update.ts b/server/controllers/api/videos/update.ts
index f600847d4..c01d9276a 100644
--- a/server/controllers/api/videos/update.ts
+++ b/server/controllers/api/videos/update.ts
@@ -147,7 +147,9 @@ async function updateVideo (req: express.Request, res: express.Response) {
147 return { videoInstanceUpdated, isNewVideo } 147 return { videoInstanceUpdated, isNewVideo }
148 }) 148 })
149 149
150 if (videoInfoToUpdate.name) await updateTorrentsMetadata(videoInstanceUpdated) 150 if (videoInstanceUpdated.isLive !== true && videoInfoToUpdate.name) {
151 await updateTorrentsMetadata(videoInstanceUpdated)
152 }
151 153
152 await sequelizeTypescript.transaction(t => federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, t)) 154 await sequelizeTypescript.transaction(t => federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, t))
153 155