const con = require('./connect'); function selectCollectionSmartTag(collectionFk, callback) { let consSql = `SELECT * FROM vn.collectionSmartTag WHERE collectionFk = ${collectionFk};`; console.log(consSql); con.con.query(consSql, function(err, result, fields) { console.log(result); callback(null, result); console.log(result); }); } exports.selectCollectionSmartTag = selectCollectionSmartTag;