storeId correct

This commit is contained in:
alexmorenograu 2021-03-22 11:14:33 +01:00
parent bd2fc454d6
commit 18d4208ade
1 changed files with 3 additions and 1 deletions

View File

@ -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);
})();
})();
}