This commit is contained in:
Bluepr1nt
2017-03-28 15:47:27 +02:00
parent 330fe5c127
commit 12265f44e3
+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;