From 4b4770b0379944b102197673d89502bf6e2772d2 Mon Sep 17 00:00:00 2001 From: alexmorenograu <61759297+alexmorenograu@users.noreply.github.com> Date: Wed, 17 Mar 2021 15:27:09 +0100 Subject: [PATCH] order folders --- bindShelvingTag.js | 4 ++-- bindTicketShelving.js | 3 +-- bindTicketShelvingOld.js | 4 ++-- bindShelving.js => methods/bindShelving.js | 2 +- insertShelving.js => methods/insertShelving.js | 2 +- insertTicket.js => methods/insertTicket.js | 2 +- insertTicketOld.js => methods/insertTicketOld.js | 2 +- 7 files changed, 9 insertions(+), 10 deletions(-) rename bindShelving.js => methods/bindShelving.js (91%) rename insertShelving.js => methods/insertShelving.js (94%) rename insertTicket.js => methods/insertTicket.js (97%) rename insertTicketOld.js => methods/insertTicketOld.js (97%) diff --git a/bindShelvingTag.js b/bindShelvingTag.js index efa8e3c..05a5fa4 100644 --- a/bindShelvingTag.js +++ b/bindShelvingTag.js @@ -1,5 +1,5 @@ -const insertShelving = require('./insertShelving'); -const bindShelving = require('./bindShelving'); +const insertShelving = require('./methods/insertShelving'); +const bindShelving = require('./methods/bindShelving'); const filter = require('./utilities/filter'); const insertDB = require('./db/insertDB') diff --git a/bindTicketShelving.js b/bindTicketShelving.js index 5d3b32e..0a73f6a 100644 --- a/bindTicketShelving.js +++ b/bindTicketShelving.js @@ -1,4 +1,4 @@ -const insert = require('./insertTicket'); +const insert = require('./methods/insertTicket'); const filter = require('./utilities/filter'); const select = require('./db/selectDB'); const maxWagon = require('./db/maxWagon'); @@ -10,7 +10,6 @@ var collectionFk = '273449'; function ticketCollection(collectionFk){//parametro collectionFk select.select(collectionFk, function(err,data){ maxWagon.maxWagon(collectionFk,function(err,max){ - console.log('Entra') //aqui iria una funciĆ³n para pedir el numero de shelvings correspondientes var shelving = ['ABC','DFG','HIJ'] //if(filter.isShelving(shelving)){ diff --git a/bindTicketShelvingOld.js b/bindTicketShelvingOld.js index 0504249..890fd45 100644 --- a/bindTicketShelvingOld.js +++ b/bindTicketShelvingOld.js @@ -1,5 +1,5 @@ -const insert = require('./insertTicket'); -const filter = require('./filter'); +const insert = require('./methods/insertTicket'); +const filter = require('./utilities/filter'); const select = require('./db/selectDB'); var barcode = "A0A3B820690F"; diff --git a/bindShelving.js b/methods/bindShelving.js similarity index 91% rename from bindShelving.js rename to methods/bindShelving.js index ba60d0b..b36971d 100644 --- a/bindShelving.js +++ b/methods/bindShelving.js @@ -1,4 +1,4 @@ -const config = require('./config'); +const config = require('../config'); const got = require('got'); function bindShelving(barcode, shelvingId){ diff --git a/insertShelving.js b/methods/insertShelving.js similarity index 94% rename from insertShelving.js rename to methods/insertShelving.js index 112da45..851d797 100644 --- a/insertShelving.js +++ b/methods/insertShelving.js @@ -1,4 +1,4 @@ -const config = require('./config'); +const config = require('../config'); const got = require('got'); function insertShelving(shelvingId){ diff --git a/insertTicket.js b/methods/insertTicket.js similarity index 97% rename from insertTicket.js rename to methods/insertTicket.js index ec2ccd8..7ba9129 100644 --- a/insertTicket.js +++ b/methods/insertTicket.js @@ -1,5 +1,5 @@ function insertTicket(consultaSql, shelving, max){ - const config = require('./config'); + const config = require('../config'); const got = require('got'); (async() => { const info = await config.info diff --git a/insertTicketOld.js b/methods/insertTicketOld.js similarity index 97% rename from insertTicketOld.js rename to methods/insertTicketOld.js index 6cd3de6..e66b3c3 100644 --- a/insertTicketOld.js +++ b/methods/insertTicketOld.js @@ -1,5 +1,5 @@ function insertTicket(consultaSql, shelving, max){ - const config = require('./config'); + const config = require('../config'); const got = require('got'); (async() => { const info = await config.info