diff options
Diffstat (limited to 'server/lib/job-queue/handlers/video-live-ending.ts')
-rw-r--r-- | server/lib/job-queue/handlers/video-live-ending.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/job-queue/handlers/video-live-ending.ts b/server/lib/job-queue/handlers/video-live-ending.ts index 55c7a4ccb..599aabf80 100644 --- a/server/lib/job-queue/handlers/video-live-ending.ts +++ b/server/lib/job-queue/handlers/video-live-ending.ts | |||
@@ -83,6 +83,8 @@ async function saveLive (video: MVideo, live: MVideoLive) { | |||
83 | await live.destroy() | 83 | await live.destroy() |
84 | 84 | ||
85 | video.isLive = false | 85 | video.isLive = false |
86 | // Reinit views | ||
87 | video.views = 0 | ||
86 | video.state = VideoState.TO_TRANSCODE | 88 | video.state = VideoState.TO_TRANSCODE |
87 | video.duration = duration | 89 | video.duration = duration |
88 | 90 | ||