[ScopeNames.WITH_FILES]: {
include: [
{
- model: () => VideoFileModel,
+ model: () => VideoFileModel.unscoped(),
required: true
}
]
[ScopeNames.WITH_SHARES]: {
include: [
{
- model: () => VideoShareModel,
- include: [ () => ActorModel ]
+ model: () => VideoShareModel.unscoped()
}
]
},
include: [
{
model: () => AccountVideoRateModel,
- include: [ () => AccountModel ]
+ include: [
+ {
+ model: () => AccountModel.unscoped(),
+ required: true,
+ include: [
+ {
+ attributes: [ 'url' ],
+ model: () => ActorModel.unscoped()
+ }
+ ]
+ }
+ ]
}
]
},
[ScopeNames.WITH_COMMENTS]: {
include: [
{
- model: () => VideoCommentModel
+ model: () => VideoCommentModel.unscoped()
}
]
}