]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-channel.ts
Fix videos history tests
[github/Chocobozzz/PeerTube.git] / server / models / video / video-channel.ts
index 00ae58c68cba89fae24088b626353b16bd4d34cc..d6dd1b8bbca6bec237cbf7540627399425d8b3ee 100644 (file)
@@ -419,7 +419,7 @@ export class VideoChannelModel extends Model<Partial<AttributesOnly<VideoChannel
       }
     }
 
-    return VideoChannelModel.count(query)
+    return VideoChannelModel.unscoped().count(query)
   }
 
   static async getStats () {