From 18d4208ade9115a7396bf7d6cea29df55a99f0c0 Mon Sep 17 00:00:00 2001 From: alexmorenograu <61759297+alexmorenograu@users.noreply.github.com> Date: Mon, 22 Mar 2021 11:14:33 +0100 Subject: [PATCH] storeId correct --- methods/bindShelvingTag.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); })(); })(); }