]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/users/index.ts
Type toFormattedJSON
[github/Chocobozzz/PeerTube.git] / server / controllers / api / users / index.ts
index e6b678f3a6a13076b29e0cba1e369ba8ad27e5d1..27351c1a954b8d68ed648fac005e5462bacc0962 100644 (file)
@@ -196,7 +196,7 @@ async function createUser (req: express.Request, res: express.Response) {
     videoQuota: body.videoQuota,
     videoQuotaDaily: body.videoQuotaDaily,
     adminFlags: body.adminFlags || UserAdminFlag.NONE
-  })
+  }) as MUser
 
   const { user, account } = await createUserAccountAndChannelAndPlaylist({ userToCreate: userToCreate })