From 455d9488852ae61300645d30b5119c2844c73978 Mon Sep 17 00:00:00 2001 From: Anatoly Kopyl Date: Mon, 29 Mar 2021 10:35:39 +0300 Subject: [PATCH] =?UTF-8?q?:pencil2:=20=D0=9E=D0=BF=D0=B5=D1=87=D0=B0?= =?UTF-8?q?=D1=82=D0=BA=D0=B0=20=D0=B2=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B8=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=BB=D0=B5=D0=BA=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/index.js b/backend/index.js index 2905aeb..f871e0b 100644 --- a/backend/index.js +++ b/backend/index.js @@ -72,7 +72,7 @@ app.get('/card', async (req, res) => { app.post('/answer', (req, res) => { if (req.session.loggedIn) { try { - client.db(process.env.DB_NAME).collection('anwsers').insertOne(req.body.data) + client.db(process.env.DB_NAME).collection('answers').insertOne(req.body.data) res.status(200).send() } catch (e) { console.log("Error: " + e)