const con = require('./connect'); function select(ticket, callback) { let sql = `SELECT * FROM vn.collectionSmartTag WHERE ticketFk = ?`; con.query(sql, ticket, function(err, result) { if (err) throw err; callback(null, result); }); } exports.select = select;