mirror of https://github.com/Chocobozzz/PeerTube
Prevent logging error when saving delete live
parent
cace0d1a71
commit
0755cb89e7
|
@ -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 New Issue