This commit is contained in:
Bluepr1nt
2017-03-28 15:48:56 +02:00
parent 12265f44e3
commit 6fa200e999
+1 -1
View File
@@ -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;