Fix insane SQL request when loading all video attributes

pull/592/head
Chocobozzz 2018-05-23 09:05:53 +02:00
parent 7e2b4ecdcc
commit e1a540b5fa
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 0 deletions

View File

@ -271,6 +271,7 @@ enum ScopeNames {
[ScopeNames.WITH_SHARES]: {
include: [
{
['separate' as any]: true,
model: () => VideoShareModel.unscoped()
}
]
@ -278,6 +279,7 @@ enum ScopeNames {
[ScopeNames.WITH_RATES]: {
include: [
{
['separate' as any]: true,
model: () => AccountVideoRateModel,
include: [
{
@ -297,6 +299,7 @@ enum ScopeNames {
[ScopeNames.WITH_COMMENTS]: {
include: [
{
['separate' as any]: true,
model: () => VideoCommentModel.unscoped()
}
]