aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-03-24 01:12:30 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-03-31 10:29:24 +0200
commit747c562837e37f2fa455e8ef62165e9bb4e365f1 (patch)
treeae7628afb2865de93b195b064df1dace2e524dbe /server/models
parent8165d00ac6263cf3c0d61d450960ef36635084ff (diff)
downloadPeerTube-747c562837e37f2fa455e8ef62165e9bb4e365f1.tar.gz
PeerTube-747c562837e37f2fa455e8ef62165e9bb4e365f1.tar.zst
PeerTube-747c562837e37f2fa455e8ef62165e9bb4e365f1.zip
Put channel stats behind withStats flag
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video-channel.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts
index 128915af3..5e6541837 100644
--- a/server/models/video/video-channel.ts
+++ b/server/models/video/video-channel.ts
@@ -412,7 +412,6 @@ export class VideoChannelModel extends Model<VideoChannelModel> {
412 412
413 const scopes: string | ScopeOptions | (string | ScopeOptions)[] = [ ScopeNames.WITH_ACTOR ] 413 const scopes: string | ScopeOptions | (string | ScopeOptions)[] = [ ScopeNames.WITH_ACTOR ]
414 414
415 options.withStats = true // TODO: remove beyond after initial tests
416 if (options.withStats) { 415 if (options.withStats) {
417 scopes.push({ 416 scopes.push({
418 method: [ ScopeNames.WITH_STATS, { daysPrior: 30 } as AvailableWithStatsOptions ] 417 method: [ ScopeNames.WITH_STATS, { daysPrior: 30 } as AvailableWithStatsOptions ]