Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Method typo

Chocobozzz5b8da4e05191
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 e151ef8764..28b4aeb5cd 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 374e3806ff..dfb7eaedb9 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<VideoFileModel> {
return VideoFileModel.findOne({ where, transaction: options.transaction })
}
- static removeHLSFilesOfVideoId (videoStreamingPlaylistId: number) {
+ static removeHLSFilesOfStreamingPlaylistId (videoStreamingPlaylistId: number) {
const options = {
where: { videoStreamingPlaylistId }
}