Skip to content

The Open Source DocuSign Alternative.

🧹

Timur Ercan937ac7924317
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({