]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/users.ts
Video channel API routes refractor
[github/Chocobozzz/PeerTube.git] / server / controllers / api / users.ts
index 474329b5853d00623e49808868a164a3448a888f..dcc4ef196b7444cef4f322deb7c8a8ef286e79f4 100644 (file)
@@ -185,7 +185,10 @@ async function createUserRetryWrapper (req: express.Request, res: express.Respon
   return res.json({
     user: {
       id: user.id,
-      uuid: account.uuid
+      account: {
+        id: account.id,
+        uuid: account.Actor.uuid
+      }
     }
   }).end()
 }