diff options
Diffstat (limited to 'server/models/video')
-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 () { |