Video get SQL optimization
This commit is contained in:
parent
2c897999fe
commit
3e5002477a
|
@ -127,22 +127,30 @@ enum ScopeNames {
|
||||||
attributes: {
|
attributes: {
|
||||||
exclude: [ 'privateKey', 'publicKey' ]
|
exclude: [ 'privateKey', 'publicKey' ]
|
||||||
},
|
},
|
||||||
model: () => ActorModel,
|
model: () => ActorModel.unscoped(),
|
||||||
required: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
model: () => AccountModel,
|
|
||||||
required: true,
|
required: true,
|
||||||
include: [
|
include: [
|
||||||
{
|
{
|
||||||
model: () => ActorModel,
|
attributes: [ 'host' ],
|
||||||
|
model: () => ServerModel.unscoped(),
|
||||||
|
required: false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
model: () => AccountModel.unscoped(),
|
||||||
|
required: true,
|
||||||
|
include: [
|
||||||
|
{
|
||||||
|
model: () => ActorModel.unscoped(),
|
||||||
attributes: {
|
attributes: {
|
||||||
exclude: [ 'privateKey', 'publicKey' ]
|
exclude: [ 'privateKey', 'publicKey' ]
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
include: [
|
include: [
|
||||||
{
|
{
|
||||||
model: () => ServerModel,
|
attributes: [ 'host' ],
|
||||||
|
model: () => ServerModel.unscoped(),
|
||||||
required: false
|
required: false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue