From e37ca6cbc7d20ad773389efa289f8552fa28fc75 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 4 Oct 2022 11:17:37 +0200 Subject: Prevent error log --- server/lib/job-queue/handlers/video-live-ending.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server') 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) { const live = await VideoLiveModel.loadByVideoId(payload.videoId) const liveSession = await VideoLiveSessionModel.load(payload.liveSessionId) - const permanentLive = live.permanentLive - if (!video || !live || !liveSession) { logError() return } + const permanentLive = live.permanentLive + liveSession.endingProcessed = true await liveSession.save() -- cgit v1.2.3