]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix channels creation creation limit count
authorChocobozzz <me@florianbigard.com>
Mon, 21 Mar 2022 08:27:49 +0000 (09:27 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 21 Mar 2022 08:27:49 +0000 (09:27 +0100)
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 () {
   }
 
   static async getStats () {