Select from collectionSmartTag
This commit is contained in:
parent
29710f3f90
commit
04c0457df8
|
@ -1,7 +1,7 @@
|
|||
const con = require('./connect');
|
||||
|
||||
function selectCollectionSmartTag(collectionFk, callback) {
|
||||
let consSql = `SELECT * FROM vn.collectionSmartTag2 WHERE collectionFk = ${collectionFk};`;
|
||||
let consSql = `SELECT * FROM vn.collectionSmartTag WHERE collectionFk = ${collectionFk};`;
|
||||
console.log(consSql);
|
||||
con.con.query(consSql, function(err, result, fields) {
|
||||
console.log(result);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const express = require('express');
|
||||
const router = express.Router(); // eslint-disable-line
|
||||
const select = require('../db/selectCollection');
|
||||
const insertTicketDB = require('../db/insertTicket');
|
||||
// const insertTicketDB = require('../db/insertTicket');
|
||||
|
||||
router.get('/:collectionFk', async(req, res) => {
|
||||
const collectionFk = req.params.collectionFk;
|
||||
|
@ -57,7 +57,7 @@ function insertTicket(consultaSql) {
|
|||
'Authorization': key
|
||||
}
|
||||
});
|
||||
insertTicketDB.insertTicket(consultaSql[i].ticketFk, consultaSql[i].code);
|
||||
// insertTicketDB.insertTicket(consultaSql[i].ticketFk, consultaSql[i].code); // Seguramente esto sobra
|
||||
console.log(i, body);
|
||||
}
|
||||
})();
|
||||
|
|
Reference in New Issue