Prevent logging error when saving delete live
This commit is contained in:
parent
cace0d1a71
commit
0755cb89e7
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue