diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-11 16:31:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-11 16:31:41 +0200 |
commit | 31d5d916c39c90546ac22e80a375997911cd2483 (patch) | |
tree | 1750d45ddd73355315ff96909f12f03041b1e870 /server/models/video/sql | |
parent | 9f7657b6b6d1cd2887e369ad57c75570aa246b35 (diff) | |
download | PeerTube-31d5d916c39c90546ac22e80a375997911cd2483.tar.gz PeerTube-31d5d916c39c90546ac22e80a375997911cd2483.tar.zst PeerTube-31d5d916c39c90546ac22e80a375997911cd2483.zip |
Fix redundancy row grabbing
Diffstat (limited to 'server/models/video/sql')
-rw-r--r-- | server/models/video/sql/shared/video-model-builder.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/server/models/video/sql/shared/video-model-builder.ts b/server/models/video/sql/shared/video-model-builder.ts index cc71192c0..e7e2aa1ca 100644 --- a/server/models/video/sql/shared/video-model-builder.ts +++ b/server/models/video/sql/shared/video-model-builder.ts | |||
@@ -113,7 +113,7 @@ export class VideoModelBuilder { | |||
113 | 113 | ||
114 | const videoModel = this.videosMemo[row.id] | 114 | const videoModel = this.videosMemo[row.id] |
115 | this.addWebTorrentFile(row, videoModel) | 115 | this.addWebTorrentFile(row, videoModel) |
116 | this.addRedundancy(row, 'VideoFiles.RedundancyVideos', this.videoFileMemo[id]) | 116 | this.addRedundancy(row, 'VideoFiles', this.videoFileMemo[id]) |
117 | } | 117 | } |
118 | } | 118 | } |
119 | 119 | ||
@@ -128,11 +128,7 @@ export class VideoModelBuilder { | |||
128 | 128 | ||
129 | this.addStreamingPlaylist(row, videoModel) | 129 | this.addStreamingPlaylist(row, videoModel) |
130 | this.addStreamingPlaylistFile(row) | 130 | this.addStreamingPlaylistFile(row) |
131 | this.addRedundancy( | 131 | this.addRedundancy(row, 'VideoStreamingPlaylists', this.videoStreamingPlaylistMemo[id]) |
132 | row, | ||
133 | 'VideoStreamingPlaylists.RedundancyVideos', | ||
134 | this.videoStreamingPlaylistMemo[id] | ||
135 | ) | ||
136 | } | 132 | } |
137 | } | 133 | } |
138 | 134 | ||