From 8dfe2f7d3e1b1efc629eac8346f696f0adce6bec Mon Sep 17 00:00:00 2001 From: llopis15 Date: Tue, 16 Mar 2021 15:22:25 +0100 Subject: [PATCH] update --- bindShelvingTag.js | 11 ++++++----- package.json | 7 +------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/bindShelvingTag.js b/bindShelvingTag.js index 0ac79cf..efa8e3c 100644 --- a/bindShelvingTag.js +++ b/bindShelvingTag.js @@ -1,14 +1,15 @@ const insertShelving = require('./insertShelving'); const bindShelving = require('./bindShelving'); -const filter = require('./filter'); +const filter = require('./utilities/filter'); const insertDB = require('./db/insertDB') function bindShelvingTag(barcode, shelving, level){ if(filter.isBarcode(barcode)){ if(filter.isShelving(shelving)){ - bindShelving.bindShelving(barcode, shelving, level); - insertShelving.insertShelving(shelving, level); - //insertDB.insertDB(barcode, shelving, level); + let shelvingId = shelving + level; + insertShelving.insertShelving(shelvingId); + bindShelving.bindShelving(barcode, shelvingId); + insertDB.insertDB(barcode, shelving, level); }else{ console.log("¡MATRICULA INCORRECTA!") } @@ -17,7 +18,7 @@ function bindShelvingTag(barcode, shelving, level){ } } ///DATOS INTRODUCIDOS POR EL USUARIO//// -var barcode = "A0A3B8224DFF"; //valido = "A0A3B82"+ 4 CARACTERES HEXADECIMALES (0-F) +var barcode = "A0A3B8224DBF"; //valido = "A0A3B82"+ 4 CARACTERES HEXADECIMALES (0-F) var shelving = "ABC"; //valido = 3 CARACTERES LETRAS (A-Z) var level = "4"; ////////////////////////////////////// diff --git a/package.json b/package.json index ef01e8e..7b1aadc 100644 --- a/package.json +++ b/package.json @@ -10,12 +10,7 @@ "author": "", "license": "ISC", "dependencies": { - "atob": "^2.1.2", - "express": "^4.17.1", "got": "^11.8.2", - "mariadb": "^2.5.3", - "mysql": "^2.18.1", - "node-rsa": "^1.1.1", - "xmlhttprequest": "^1.8.0" + "mysql": "^2.18.1" } }