diff --git a/routes/posts.js b/routes/posts.js index 605a251..a62b42c 100644 --- a/routes/posts.js +++ b/routes/posts.js @@ -61,6 +61,7 @@ router.post('/commandeCrepe', async function (req, res) { prenom: prenom, finish: false } + await db.getDb().collection('commandes').insertOne(crepeCommande); res.redirect("/hotLine"); }) diff --git a/views/hotLine.ejs b/views/hotLine.ejs index 1ec8e4d..cf851d0 100644 --- a/views/hotLine.ejs +++ b/views/hotLine.ejs @@ -35,7 +35,7 @@