10 lines
301 B
JavaScript
10 lines
301 B
JavaScript
const con = require('./connect');
|
|
|
|
function insertTicket(ticket, smartTag) {
|
|
let sql = `UPDATE vn.ticketCollection SET smartTagFk = '${smartTag}' WHERE ticketFk = ${ticket}`;
|
|
con.con.query(sql, function(err, result) {
|
|
if (err) throw err;
|
|
});
|
|
}
|
|
exports.insertTicket = insertTicket;
|