const con = require('./connect'); function insertTicket(ticket, smartTag) { const sql = `UPDATE vn.ticketCollection SET smartTagFk = ? WHERE ticketFk = ?`; return con.query(sql, [smartTag, ticket]); } exports.insertTicket = insertTicket;