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;