mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix videos list for api SQL request
This commit is contained in:
@@ -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
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user