Method typo
This commit is contained in:
parent
d4a09f9ce2
commit
5b8da4e051
|
@ -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 = []
|
||||||
|
|
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue