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