Browse Source

Method typo

Chocobozzz 1 month ago
parent
commit
5b8da4e051

+ 1 - 1
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 = []

+ 1 - 1
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 }
     }