diff --git a/methods/bindShelvingTag.js b/methods/bindShelvingTag.js index 3e4950a..8442beb 100644 --- a/methods/bindShelvingTag.js +++ b/methods/bindShelvingTag.js @@ -1,6 +1,7 @@ const dataLogIn = require('../server'); const got = require('got'); const filter = require('../utilities/filter'); +const config = require('../config'); const insertDB = require('../db/insertDB'); const express = require('express'); const router = express.Router(); // eslint-disable-line @@ -74,7 +75,7 @@ function bindShelving(barcode, shelvingId) { (async() => { const {body} = await got.post('http://app.etiquetaselectronicas.com:9999/bind/batchBind', { // eslint-disable-line json: { - storeId: dataLogIn.storeId, + storeId: config.storeId, tagItemBinds: [{ eslBarcode: barcode, itemBarcode: shelvingId @@ -86,6 +87,7 @@ function bindShelving(barcode, shelvingId) { 'Authorization': key } }); + console.log(body); })(); })(); }