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"