From 76564702b7be1b7bd0481624235960e6ff642078 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 13 Mar 2019 16:47:01 +0100 Subject: Fix videos list for api SQL request --- server/models/video/video.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'server/models') 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 = { }, include: [ { - model: VideoChannelModel.scope({ method: [ VideoChannelScopeNames.SUMMARY, true ] }) + model: VideoChannelModel.scope({ method: [ VideoChannelScopeNames.SUMMARY, true ] }), + required: true } ] } @@ -1566,8 +1567,8 @@ export class VideoModel extends Model { apiScope.push({ method: [ ScopeNames.FOR_API, { - ids, withFiles: - options.withFiles, + ids, + withFiles: options.withFiles, videoPlaylistId: options.videoPlaylistId } as ForAPIOptions ] -- cgit v1.2.3