From 247e935b14a1eb6dbf09eea6ac476e973343d911 Mon Sep 17 00:00:00 2001 From: llopis15 Date: Thu, 11 Mar 2021 16:47:32 +0100 Subject: [PATCH] delete replaxe --- bindShelving.js | 1 - replace.js | 29 ----------------------------- 2 files changed, 30 deletions(-) delete mode 100644 replace.js diff --git a/bindShelving.js b/bindShelving.js index 5e9e8e8..603a375 100644 --- a/bindShelving.js +++ b/bindShelving.js @@ -23,5 +23,4 @@ function bindShelving(barcode, shelving, level){ })(); })(); } - exports.bindShelving = bindShelving; \ No newline at end of file diff --git a/replace.js b/replace.js deleted file mode 100644 index 1bee4a0..0000000 --- a/replace.js +++ /dev/null @@ -1,29 +0,0 @@ -function replaceTag(barcode, shelving, level){ - const got = require('got'); - const config = require('./config'); - (async() => { - const info = await config.info - let key = info.data.token; - const { body } = await got.post('http://app.etiquetaselectronicas.com:9999/bind/batchBind', { - json: { - storeId: config.storeId, - tagItemBinds: [{ - eslBarcode: barcode, - itemBarcode: shelving + level - } - ] - }, - responseType: 'json', - headers: { - "Authorization": key - } - }) - console.log(body) - })(); -} - -var barcode = "A0A3B8207222"; -var shelving = "ABC"; -var level = "2"; - -replaceTag(barcode, shelving, level); \ No newline at end of file