Prevent logging error when saving delete live

pull/5138/head
Chocobozzz 2022-07-18 15:49:15 +02:00
parent cace0d1a71
commit 0755cb89e7
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 0 deletions

View File

@ -483,6 +483,8 @@ class LiveManager {
private async saveEndingSession (videoId: number, error: LiveVideoError | null) {
const liveSession = await VideoLiveSessionModel.findCurrentSessionOf(videoId)
if (!liveSession) return
liveSession.endDate = new Date()
liveSession.error = error