Select from collectionSmartTag

This commit is contained in:
alexmorenograu 2021-08-04 11:24:40 +02:00
parent 29710f3f90
commit 04c0457df8
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);
}
})();