Method typo

This commit is contained in:
Chocobozzz 2024-03-25 15:14:56 +01:00
parent d4a09f9ce2
commit 5b8da4e051
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 2 deletions

View File

@ -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 = []

View File

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