From 42d5928ee180440d1f6c581c88e92c8941188e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20Bj=C3=B6rklund?= Date: Fri, 24 May 2024 22:08:30 +0200 Subject: [PATCH] Update credentials.ts Gets runtime error when user exists. Updating the response with a status code that hopefully fixes it. --- src/credentials.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/credentials.ts b/src/credentials.ts index 96ea895..e79b3c1 100644 --- a/src/credentials.ts +++ b/src/credentials.ts @@ -31,7 +31,7 @@ export const signUpHandler = }); } - res.json(response); + res.status(400).json(response); return; }