Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e1e4af

Browse files
committed
Fix get video from redudancy
1 parent 2284521 commit 2e1e4af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/models/redundancy/video-redundancy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,9 +709,9 @@ export class VideoRedundancyModel extends Model {
709709
}
710710

711711
getVideo () {
712-
if (this.VideoFile) return this.VideoFile.Video
712+
if (this.VideoFile?.Video) return this.VideoFile.Video
713713

714-
if (this.VideoStreamingPlaylist.Video) return this.VideoStreamingPlaylist.Video
714+
if (this.VideoStreamingPlaylist?.Video) return this.VideoStreamingPlaylist.Video
715715

716716
return undefined
717717
}

0 commit comments

Comments
 (0)