update port

This commit is contained in:
alexmorenograu 2021-05-10 15:20:31 +02:00
parent deb0d40788
commit 4520ceb804
6 changed files with 11 additions and 13 deletions

View File

@ -1,5 +1,5 @@
CREATE TABLE vn.smartTag (
code varchar(100) NOT NULL,
code varchar(12) NOT NULL,
shelvingFk varchar(10) NULL,
`level` int(11) NULL,
CONSTRAINT `PRIMARY` PRIMARY KEY (code),

View File

@ -12,7 +12,6 @@ function insertDB(barcode, shelving, level) {
VALUES ('${barcode}', '${shelving}', ${level});
END IF;`;
con.con.query(sql, function(err, result) {
if (err) throw err;
});
}
exports.insertDB = insertDB;

View File

@ -5,7 +5,7 @@ const config = require('../config');
const insertDB = require('../db/insertDB');
const express = require('express');
const router = express.Router(); // eslint-disable-line
// canviar barcode per smarttagFk
router.get('/:barcode&:shelving&:level', async(req, res) => {
const barcode = req.params.barcode;// valido = "A0A3B82"+ 4 CARACTERES HEXADECIMALES (0-F)
const shelving = req.params.shelving;// valido = 3 CARACTERES LETRAS (A-Z)

View File

@ -4,7 +4,7 @@ const select = require('../db/selectCollection');
const filter = require('../utilities/filter');
const insertTicketDB = require('../db/insertTicket');
router.get('/:collectionShelving&:collectionFk', async(req, res) => {
router.get('/collectionFk', async(req, res) => {
const collectionShelving = req.params.collectionShelving.split(',');
const collectionFk = req.params.collectionFk;
console.log(collectionShelving);
@ -15,7 +15,6 @@ router.get('/:collectionShelving&:collectionFk', async(req, res) => {
} else
res.json({message: 'SHELVING ERROR'});
});
module.exports = router;
function ticketShelving(collectionShelving, collectionFk) {// parametro collectionFk

14
package-lock.json generated
View File

@ -980,16 +980,16 @@
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
},
"mime-db": {
"version": "1.46.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.46.0.tgz",
"integrity": "sha512-svXaP8UQRZ5K7or+ZmfNhg2xX3yKDMUzqadsSqi4NCH/KomcH75MAMYAGVlvXn4+b/xOPhS3I2uHKRUzvjY7BQ=="
"version": "1.47.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.47.0.tgz",
"integrity": "sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw=="
},
"mime-types": {
"version": "2.1.29",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.29.tgz",
"integrity": "sha512-Y/jMt/S5sR9OaqteJtslsFZKWOIIqMACsJSiHghlCAyhf7jfVYjKBmLiX8OgpWeW+fjJ2b+Az69aPFPkUOY6xQ==",
"version": "2.1.30",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.30.tgz",
"integrity": "sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg==",
"requires": {
"mime-db": "1.46.0"
"mime-db": "1.47.0"
}
},
"mimic-response": {

View File

@ -1,6 +1,6 @@
const express = require('express');
const app = express();
const port = 9999;
const port = 7777;
const logIn = require('./methods/logIn');
const con = require('./db/connect');