From 11db8b9d3ef8d48daad0b2ee7c6e343a7eb21997 Mon Sep 17 00:00:00 2001 From: clement callaert Date: Sat, 4 Nov 2023 20:14:51 +0100 Subject: [PATCH] mongodb --- routes/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/auth.js b/routes/auth.js index ea443f1..7433610 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -60,7 +60,7 @@ router.post('/creer-compte', async function (req, res) { return; } console.log("here2") - const existingUser = await db.getDb().collection('users').findOne({email: enteredEmail}); + const existingUser = await db.getDb().collection('users').findOne({email: enteredEmail}) if (existingUser) { console.log("here4") req.session.inputData = {