From 40fd5b1e601e4b91ae9910947d5f8e49d06279f8 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Sun, 8 Jan 2023 22:22:13 +0100 Subject: [PATCH] raaah same --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 844b65c..9a2c6d4 100644 --- a/index.js +++ b/index.js @@ -140,7 +140,7 @@ fastify.post('/register', async (request, reply) => { let content = request.body; if (content.hasOwnProperty("user") && content.hasOwnProperty("password")) { - if (UsersBDD.hasOwnProperty(content.user) { + if (UsersBDD.hasOwnProperty(content.user)) { return { success: false, why: "This user already exists"