1
0
Fork 0

Prevent logging error when saving delete live

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

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