diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-08 10:51:10 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-02-08 15:38:45 +0100 |
commit | 9129b7694d577322327ee79e9b9aa64deee92765 (patch) | |
tree | eb23b7a952048c3725f29109d38c36368976dec0 /server/models | |
parent | 81b46cbc3417c46263c210c61b51a84a457abaaa (diff) | |
download | PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.gz PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.zst PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.zip |
Allow to specify transcoding and import jobs concurrency
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video.ts | 4 |
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 = [] |