From dcf3e06d9a21ad4b1d71efd90fd17ed887f0aba3 Mon Sep 17 00:00:00 2001 From: kennyboy55 Date: Wed, 22 Mar 2017 16:44:45 +0100 Subject: [PATCH] More bugfixes --- mean-app/server/routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mean-app/server/routes/api.js b/mean-app/server/routes/api.js index c0cc454..6f0176f 100644 --- a/mean-app/server/routes/api.js +++ b/mean-app/server/routes/api.js @@ -17,7 +17,7 @@ router.post('/telegram', (req, res) => connection.connect(); - connection.query('INSTERT INTO telegram (`time`,`data`) VALUES (\'NOW()\', ' + req.body + ')', function (error, results, fields) { + connection.query('INSTERT INTO telegram (`time`,`data`) VALUES (\'NOW()\', \'' + req.body + '\')', function (error, results, fields) { if (error) throw error; });