test4
This commit is contained in:
@@ -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.datagram],
|
||||
function (error, results, fields) {
|
||||
if (error) throw error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user