diff --git a/server/models/video/video.ts b/server/models/video/video.ts index fe8c30655..967a899f5 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -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() } ]