aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 3f6fd8dc0..14e80a3ba 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -345,7 +345,6 @@ export type AvailableForListIDsOptions = {
345 include: [ 345 include: [
346 { 346 {
347 model: VideoFileModel, 347 model: VideoFileModel,
348 separate: true, // We may have multiple files, having multiple redundancies so let's separate this join
349 required: false, 348 required: false,
350 include: subInclude 349 include: subInclude
351 } 350 }
@@ -372,7 +371,6 @@ export type AvailableForListIDsOptions = {
372 include: [ 371 include: [
373 { 372 {
374 model: VideoStreamingPlaylistModel.unscoped(), 373 model: VideoStreamingPlaylistModel.unscoped(),
375 separate: true, // We may have multiple streaming playlists, having multiple redundancies so let's separate this join
376 required: false, 374 required: false,
377 include: subInclude 375 include: subInclude
378 } 376 }
@@ -1689,7 +1687,7 @@ export class VideoModel extends Model {
1689 1687
1690 channelModel.Account = accountModel 1688 channelModel.Account = accountModel
1691 1689
1692 const videoModel = new VideoModel(pick(row, videoKeys)) 1690 const videoModel = new VideoModel(pick(row, videoKeys), buildOpts)
1693 videoModel.VideoChannel = channelModel 1691 videoModel.VideoChannel = channelModel
1694 1692
1695 videoModel.UserVideoHistories = [] 1693 videoModel.UserVideoHistories = []