Fix videos list for api SQL request

pull/1745/head
Chocobozzz 2019-03-13 16:47:01 +01:00 committed by Chocobozzz
parent d0e1e32589
commit 76564702b7
1 changed files with 4 additions and 3 deletions

View File

@ -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<VideoModel> {
apiScope.push({
method: [
ScopeNames.FOR_API, {
ids, withFiles:
options.withFiles,
ids,
withFiles: options.withFiles,
videoPlaylistId: options.videoPlaylistId
} as ForAPIOptions
]