From 6fa200e9995205d417d1fe4988e17a1eae712d9a Mon Sep 17 00:00:00 2001 From: Bluepr1nt Date: Tue, 28 Mar 2017 15:48:56 +0200 Subject: [PATCH] test3 --- 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 351e24b..af1d147 100644 --- a/mean-app/server/routes/api.js +++ b/mean-app/server/routes/api.js @@ -19,7 +19,7 @@ router.post('/telegram', function(req, res){ connection.query( // 'INSTERT INTO telegram (`time`,`data`) VALUES (\'NOW()\', \'' + req.body + '\')', - 'INSERT INTO telegram (time, data) VALUES ?', ['NOW()', req.body], + 'INSERT INTO telegram (time, data) VALUES (NOW(), ?)', [req.body], function (error, results, fields) { if (error) throw error;