From 5b8da4e0519172b022a93a3b31ec54f3f9d3033d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 25 Mar 2024 15:14:56 +0100 Subject: [PATCH] Method typo --- server/core/lib/job-queue/handlers/video-live-ending.ts | 2 +- server/core/models/video/video-file.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 } }