Fix insane SQL request when loading all video attributes
This commit is contained in:
parent
7e2b4ecdcc
commit
e1a540b5fa
1 changed files with 3 additions and 0 deletions
|
@ -271,6 +271,7 @@ enum ScopeNames {
|
||||||
[ScopeNames.WITH_SHARES]: {
|
[ScopeNames.WITH_SHARES]: {
|
||||||
include: [
|
include: [
|
||||||
{
|
{
|
||||||
|
['separate' as any]: true,
|
||||||
model: () => VideoShareModel.unscoped()
|
model: () => VideoShareModel.unscoped()
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -278,6 +279,7 @@ enum ScopeNames {
|
||||||
[ScopeNames.WITH_RATES]: {
|
[ScopeNames.WITH_RATES]: {
|
||||||
include: [
|
include: [
|
||||||
{
|
{
|
||||||
|
['separate' as any]: true,
|
||||||
model: () => AccountVideoRateModel,
|
model: () => AccountVideoRateModel,
|
||||||
include: [
|
include: [
|
||||||
{
|
{
|
||||||
|
@ -297,6 +299,7 @@ enum ScopeNames {
|
||||||
[ScopeNames.WITH_COMMENTS]: {
|
[ScopeNames.WITH_COMMENTS]: {
|
||||||
include: [
|
include: [
|
||||||
{
|
{
|
||||||
|
['separate' as any]: true,
|
||||||
model: () => VideoCommentModel.unscoped()
|
model: () => VideoCommentModel.unscoped()
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue