Chocobozzz преди 2 месеца
родител
ревизия
5b8da4e051
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      server/core/lib/job-queue/handlers/video-live-ending.ts
  2. 1 1
      server/core/models/video/video-file.ts

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