Prevent error log
This commit is contained in:
parent
b7faa8372e
commit
e37ca6cbc7
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue