diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-21 09:27:49 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-21 09:27:49 +0100 |
commit | 11d70211afce6ead1ebe242372be9199c4f0bd4e (patch) | |
tree | 2ca9ca50d7391855424503b101979eff1b026f0b | |
parent | 43fc899a101c0fd266cc294dc573b256168bef18 (diff) | |
download | PeerTube-11d70211afce6ead1ebe242372be9199c4f0bd4e.tar.gz PeerTube-11d70211afce6ead1ebe242372be9199c4f0bd4e.tar.zst PeerTube-11d70211afce6ead1ebe242372be9199c4f0bd4e.zip |
Fix channels creation creation limit count
-rw-r--r-- | server/models/video/video-channel.ts | 2 |
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 () { |