]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/users.ts
Begin live tests
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / users.ts
index 76ecff8845bcfbf262a9a794508e8f96b17575de..452c7fb930d2af67ccb8bd549e8836794957277a 100644 (file)
@@ -497,7 +497,7 @@ export {
 
 function checkUserIdExist (idArg: number | string, res: express.Response, withStats = false) {
   const id = parseInt(idArg + '', 10)
-  return checkUserExist(() => UserModel.loadById(id, withStats), res)
+  return checkUserExist(() => UserModel.loadByIdWithChannels(id, withStats), res)
 }
 
 function checkUserEmailExist (email: string, res: express.Response, abortResponse = true) {