mirror of https://github.com/Chocobozzz/PeerTube
Fix videos list for api SQL request
parent
d0e1e32589
commit
76564702b7
|
@ -225,7 +225,8 @@ type AvailableForListIDsOptions = {
|
||||||
},
|
},
|
||||||
include: [
|
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({
|
apiScope.push({
|
||||||
method: [
|
method: [
|
||||||
ScopeNames.FOR_API, {
|
ScopeNames.FOR_API, {
|
||||||
ids, withFiles:
|
ids,
|
||||||
options.withFiles,
|
withFiles: options.withFiles,
|
||||||
videoPlaylistId: options.videoPlaylistId
|
videoPlaylistId: options.videoPlaylistId
|
||||||
} as ForAPIOptions
|
} as ForAPIOptions
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue