Prevent error log

pull/5338/head
Chocobozzz 2022-10-04 11:17:37 +02:00
parent b7faa8372e
commit e37ca6cbc7
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -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()