test3
This commit is contained in:
@@ -19,7 +19,7 @@ router.post('/telegram', function(req, res){
|
|||||||
|
|
||||||
connection.query(
|
connection.query(
|
||||||
// 'INSTERT INTO telegram (`time`,`data`) VALUES (\'NOW()\', \'' + req.body + '\')',
|
// '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) {
|
function (error, results, fields) {
|
||||||
if (error) throw error;
|
if (error) throw error;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user