aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-03-21 09:27:49 +0100
committerChocobozzz <me@florianbigard.com>2022-03-21 09:27:49 +0100
commit11d70211afce6ead1ebe242372be9199c4f0bd4e (patch)
tree2ca9ca50d7391855424503b101979eff1b026f0b /server
parent43fc899a101c0fd266cc294dc573b256168bef18 (diff)
downloadPeerTube-11d70211afce6ead1ebe242372be9199c4f0bd4e.tar.gz
PeerTube-11d70211afce6ead1ebe242372be9199c4f0bd4e.tar.zst
PeerTube-11d70211afce6ead1ebe242372be9199c4f0bd4e.zip
Fix channels creation creation limit count
Diffstat (limited to 'server')
-rw-r--r--server/models/video/video-channel.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts
index 00ae58c68..d6dd1b8bb 100644
--- a/server/models/video/video-channel.ts
+++ b/server/models/video/video-channel.ts
@@ -419,7 +419,7 @@ export class VideoChannelModel extends Model<Partial<AttributesOnly<VideoChannel
419 } 419 }
420 } 420 }
421 421
422 return VideoChannelModel.count(query) 422 return VideoChannelModel.unscoped().count(query)
423 } 423 }
424 424
425 static async getStats () { 425 static async getStats () {