diff options
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 7624b0649..946be6095 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -225,7 +225,8 @@ type AvailableForListIDsOptions = { | |||
225 | }, | 225 | }, |
226 | include: [ | 226 | include: [ |
227 | { | 227 | { |
228 | model: VideoChannelModel.scope({ method: [ VideoChannelScopeNames.SUMMARY, true ] }) | 228 | model: VideoChannelModel.scope({ method: [ VideoChannelScopeNames.SUMMARY, true ] }), |
229 | required: true | ||
229 | } | 230 | } |
230 | ] | 231 | ] |
231 | } | 232 | } |
@@ -1566,8 +1567,8 @@ export class VideoModel extends Model<VideoModel> { | |||
1566 | apiScope.push({ | 1567 | apiScope.push({ |
1567 | method: [ | 1568 | method: [ |
1568 | ScopeNames.FOR_API, { | 1569 | ScopeNames.FOR_API, { |
1569 | ids, withFiles: | 1570 | ids, |
1570 | options.withFiles, | 1571 | withFiles: options.withFiles, |
1571 | videoPlaylistId: options.videoPlaylistId | 1572 | videoPlaylistId: options.videoPlaylistId |
1572 | } as ForAPIOptions | 1573 | } as ForAPIOptions |
1573 | ] | 1574 | ] |