1
0
Fork 0

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 liveSession.replayVideoId = videoWithFiles.id
await liveSession.save() await liveSession.save()
await VideoFileModel.removeHLSFilesOfVideoId(hlsPlaylist.id) await VideoFileModel.removeHLSFilesOfStreamingPlaylistId(hlsPlaylist.id)
// Reset playlist // Reset playlist
hlsPlaylist.VideoFiles = [] hlsPlaylist.VideoFiles = []

View file

@ -479,7 +479,7 @@ export class VideoFileModel extends SequelizeModel<VideoFileModel> {
return VideoFileModel.findOne({ where, transaction: options.transaction }) return VideoFileModel.findOne({ where, transaction: options.transaction })
} }
static removeHLSFilesOfVideoId (videoStreamingPlaylistId: number) { static removeHLSFilesOfStreamingPlaylistId (videoStreamingPlaylistId: number) {
const options = { const options = {
where: { videoStreamingPlaylistId } where: { videoStreamingPlaylistId }
} }