aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/redundancy
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-03 09:57:47 +0100
committerChocobozzz <me@florianbigard.com>2021-02-03 09:57:47 +0100
commit2e1e4af03bc9ccd2470a9f293d70dc27596aae24 (patch)
treee22402ed9606eeddb82f5dd63118d66749f2896b /server/models/redundancy
parent22845214bfde24552dc7386d0ec8f12de5760ffd (diff)
downloadPeerTube-2e1e4af03bc9ccd2470a9f293d70dc27596aae24.tar.gz
PeerTube-2e1e4af03bc9ccd2470a9f293d70dc27596aae24.tar.zst
PeerTube-2e1e4af03bc9ccd2470a9f293d70dc27596aae24.zip
Fix get video from redudancy
Diffstat (limited to 'server/models/redundancy')
-rw-r--r--server/models/redundancy/video-redundancy.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/redundancy/video-redundancy.ts b/server/models/redundancy/video-redundancy.ts
index 74895fe30..53293df37 100644
--- a/server/models/redundancy/video-redundancy.ts
+++ b/server/models/redundancy/video-redundancy.ts
@@ -709,9 +709,9 @@ export class VideoRedundancyModel extends Model {
709 } 709 }
710 710
711 getVideo () { 711 getVideo () {
712 if (this.VideoFile) return this.VideoFile.Video 712 if (this.VideoFile?.Video) return this.VideoFile.Video
713 713
714 if (this.VideoStreamingPlaylist.Video) return this.VideoStreamingPlaylist.Video 714 if (this.VideoStreamingPlaylist?.Video) return this.VideoStreamingPlaylist.Video
715 715
716 return undefined 716 return undefined
717 } 717 }