From 937ac7924317b0f51451c927c7bd955f9a47453a Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Fri, 3 Mar 2023 20:23:37 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/pages/api/auth/signup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/api/auth/signup.ts b/apps/web/pages/api/auth/signup.ts index aaa0d61c2..933747e3a 100644 --- a/apps/web/pages/api/auth/signup.ts +++ b/apps/web/pages/api/auth/signup.ts @@ -34,7 +34,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) { const hashedPassword = await hashPassword(password); - const user = await prisma.user.upsert({ + await prisma.user.upsert({ where: { email: cleanEmail }, update: { password: hashedPassword, @@ -49,7 +49,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) { }, }); - res.status(201).json({ message: "Created user" }); + res.status(201).end(); } export default defaultHandler({