diff --git a/db/selectCollection.js b/db/selectCollection.js index 894b7b6..0711da9 100644 --- a/db/selectCollection.js +++ b/db/selectCollection.js @@ -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); diff --git a/methods/bindTicketShelving.js b/methods/bindTicketShelving.js index 437fba3..6d2b41a 100644 --- a/methods/bindTicketShelving.js +++ b/methods/bindTicketShelving.js @@ -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); } })();