This repository has been archived on 2024-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
smart-tag/db/insertTicket.js

10 lines
299 B
JavaScript
Raw Normal View History

2021-03-26 15:26:17 +00:00
const con = require('./connect');
2021-07-01 06:55:17 +00:00
function insertTicket(ticket, smartTag) {
2022-03-30 12:58:49 +00:00
const sql = `UPDATE vn.ticketCollection SET smartTagFk = ? WHERE ticketFk = ?`;
2022-03-31 09:55:41 +00:00
con.query(sql, [smartTag, ticket], function(err, result) {
2021-03-30 06:06:07 +00:00
if (err) throw err;
2021-03-26 15:26:17 +00:00
});
}
exports.insertTicket = insertTicket;