aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/models/video/video.ts3
1 files changed, 3 insertions, 0 deletions
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 {
271 [ScopeNames.WITH_SHARES]: { 271 [ScopeNames.WITH_SHARES]: {
272 include: [ 272 include: [
273 { 273 {
274 ['separate' as any]: true,
274 model: () => VideoShareModel.unscoped() 275 model: () => VideoShareModel.unscoped()
275 } 276 }
276 ] 277 ]
@@ -278,6 +279,7 @@ enum ScopeNames {
278 [ScopeNames.WITH_RATES]: { 279 [ScopeNames.WITH_RATES]: {
279 include: [ 280 include: [
280 { 281 {
282 ['separate' as any]: true,
281 model: () => AccountVideoRateModel, 283 model: () => AccountVideoRateModel,
282 include: [ 284 include: [
283 { 285 {
@@ -297,6 +299,7 @@ enum ScopeNames {
297 [ScopeNames.WITH_COMMENTS]: { 299 [ScopeNames.WITH_COMMENTS]: {
298 include: [ 300 include: [
299 { 301 {
302 ['separate' as any]: true,
300 model: () => VideoCommentModel.unscoped() 303 model: () => VideoCommentModel.unscoped()
301 } 304 }
302 ] 305 ]