diff --git a/server/core/lib/job-queue/handlers/video-live-ending.ts b/server/core/lib/job-queue/handlers/video-live-ending.ts index e151ef876..28b4aeb5c 100644 --- a/server/core/lib/job-queue/handlers/video-live-ending.ts +++ b/server/core/lib/job-queue/handlers/video-live-ending.ts @@ -209,7 +209,7 @@ async function replaceLiveByReplay (options: { liveSession.replayVideoId = videoWithFiles.id await liveSession.save() - await VideoFileModel.removeHLSFilesOfVideoId(hlsPlaylist.id) + await VideoFileModel.removeHLSFilesOfStreamingPlaylistId(hlsPlaylist.id) // Reset playlist hlsPlaylist.VideoFiles = [] diff --git a/server/core/models/video/video-file.ts b/server/core/models/video/video-file.ts index 374e3806f..dfb7eaedb 100644 --- a/server/core/models/video/video-file.ts +++ b/server/core/models/video/video-file.ts @@ -479,7 +479,7 @@ export class VideoFileModel extends SequelizeModel { return VideoFileModel.findOne({ where, transaction: options.transaction }) } - static removeHLSFilesOfVideoId (videoStreamingPlaylistId: number) { + static removeHLSFilesOfStreamingPlaylistId (videoStreamingPlaylistId: number) { const options = { where: { videoStreamingPlaylistId } }