1
0
Fork 0

Prevent error log

This commit is contained in:
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

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