13 lines
380 B
JavaScript
13 lines
380 B
JavaScript
const con = require('./connect');
|
|
|
|
function selectCollectionSmartTag(collectionFk, callback) {
|
|
const consSql = `SELECT * FROM vn.collectionSmartTag WHERE collectionFk = ?;`;
|
|
con.query(consSql, collectionFk, function(err, result, fields) {
|
|
if (err) throw err;
|
|
callback(null, result);
|
|
});
|
|
}
|
|
|
|
exports.selectCollectionSmartTag = selectCollectionSmartTag;
|
|
|