aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/job-queue/handlers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-04 11:17:37 +0200
committerChocobozzz <me@florianbigard.com>2022-10-04 11:17:37 +0200
commite37ca6cbc7d20ad773389efa289f8552fa28fc75 (patch)
tree7e99093b05972240601a88ea5d99ac27c7f5c857 /server/lib/job-queue/handlers
parentb7faa8372ed598118305b760f7c1ddf537ca7f0d (diff)
downloadPeerTube-e37ca6cbc7d20ad773389efa289f8552fa28fc75.tar.gz
PeerTube-e37ca6cbc7d20ad773389efa289f8552fa28fc75.tar.zst
PeerTube-e37ca6cbc7d20ad773389efa289f8552fa28fc75.zip
Prevent error log
Diffstat (limited to 'server/lib/job-queue/handlers')
-rw-r--r--server/lib/job-queue/handlers/video-live-ending.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/job-queue/handlers/video-live-ending.ts b/server/lib/job-queue/handlers/video-live-ending.ts
index abfaf1cd7..7dbffc955 100644
--- a/server/lib/job-queue/handlers/video-live-ending.ts
+++ b/server/lib/job-queue/handlers/video-live-ending.ts
@@ -34,13 +34,13 @@ async function processVideoLiveEnding (job: Job) {
34 const live = await VideoLiveModel.loadByVideoId(payload.videoId) 34 const live = await VideoLiveModel.loadByVideoId(payload.videoId)
35 const liveSession = await VideoLiveSessionModel.load(payload.liveSessionId) 35 const liveSession = await VideoLiveSessionModel.load(payload.liveSessionId)
36 36
37 const permanentLive = live.permanentLive
38
39 if (!video || !live || !liveSession) { 37 if (!video || !live || !liveSession) {
40 logError() 38 logError()
41 return 39 return
42 } 40 }
43 41
42 const permanentLive = live.permanentLive
43
44 liveSession.endingProcessed = true 44 liveSession.endingProcessed = true
45 await liveSession.save() 45 await liveSession.save()
46 46