From 12265f44e3953da9a1c58893daa573967beca2ca Mon Sep 17 00:00:00 2001 From: Bluepr1nt Date: Tue, 28 Mar 2017 15:47:27 +0200 Subject: [PATCH] test2 --- 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 1d18437..351e24b 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;