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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/job-queue/handlers/video-live-ending.ts b/server/lib/job-queue/handlers/video-live-ending.ts index b2c42664a..0e1bfb240 100644 --- a/server/lib/job-queue/handlers/video-live-ending.ts +++ b/server/lib/job-queue/handlers/video-live-ending.ts | |||
@@ -144,7 +144,7 @@ async function replaceLiveByReplay (options: { | |||
144 | await liveSession.save() | 144 | await liveSession.save() |
145 | 145 | ||
146 | // Remove old HLS playlist video files | 146 | // Remove old HLS playlist video files |
147 | const videoWithFiles = await VideoModel.loadAndPopulateAccountAndServerAndTags(liveVideo.id) | 147 | const videoWithFiles = await VideoModel.loadFull(liveVideo.id) |
148 | 148 | ||
149 | const hlsPlaylist = videoWithFiles.getHLSPlaylist() | 149 | const hlsPlaylist = videoWithFiles.getHLSPlaylist() |
150 | await VideoFileModel.removeHLSFilesOfVideoId(hlsPlaylist.id) | 150 | await VideoFileModel.removeHLSFilesOfVideoId(hlsPlaylist.id) |
@@ -241,7 +241,7 @@ async function cleanupLiveAndFederate (options: { | |||
241 | } | 241 | } |
242 | 242 | ||
243 | try { | 243 | try { |
244 | const fullVideo = await VideoModel.loadAndPopulateAccountAndServerAndTags(video.id) | 244 | const fullVideo = await VideoModel.loadFull(video.id) |
245 | return federateVideoIfNeeded(fullVideo, false, undefined) | 245 | return federateVideoIfNeeded(fullVideo, false, undefined) |
246 | } catch (err) { | 246 | } catch (err) { |
247 | logger.warn('Cannot federate live after cleanup', { videoId: video.id, err }) | 247 | logger.warn('Cannot federate live after cleanup', { videoId: video.id, err }) |