From 1e904cde34ba41a16256da1073336dd652368592 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 2 Jul 2020 14:23:50 +0200 Subject: Fix users tests --- server/controllers/api/users/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers') diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index 732a6faa3..c8e9eaeaa 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts @@ -205,7 +205,7 @@ async function createUser (req: express.Request, res: express.Response) { Hooks.runAction('action:api.user.created', { body, user, account, videoChannel }) - return res.status(201).json({ + return res.json({ user: { id: user.id, account: { -- cgit v1.2.3