diff --git a/common/utils/vend.js b/common/utils/vend.js index 712e639e..85752f7a 100644 --- a/common/utils/vend.js +++ b/common/utils/vend.js @@ -388,13 +388,14 @@ var setDesiredStockLevelForVend = function (orgModelId, outletId, productId, des id: productId //'3aab7379-15a2-11e3-a415-bc764e10976c' }; var updateData = { - id: product.id, - inventory: [ - { - 'outlet_id': outletId, //'aea67e1a-b85c-11e2-a415-bc764e10976c', - 'reorder_point': desiredStockLevel - } - ] + details: { + inventory: [ + { + 'outlet_id': outletId, //'aea67e1a-b85c-11e2-a415-bc764e10976c', + 'reorder_point': desiredStockLevel + } + ] + } }; return vendSdk.products.update({apiId: {value: product.id}, body: {value: updateData}}, connectionInfo); }) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 8a14e0dc..8c3718cd 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -6024,7 +6024,7 @@ "vend-nodejs-sdk": { "version": "1.1.1", "from": "git+https://github.com/ShoppinPal/vend-nodejs-sdk.git#fix/ritik/depreciation/consignmentApi", - "resolved": "git+https://github.com/ShoppinPal/vend-nodejs-sdk.git#6bf25b99b1476986d3ceaa3f572957faf47ea320", + "resolved": "git+https://github.com/ShoppinPal/vend-nodejs-sdk.git#553d7375fb71e5158baae219131e709fe71973b5", "dependencies": { "async": { "version": "0.9.2", diff --git a/workers/npm-shrinkwrap.json b/workers/npm-shrinkwrap.json index 6a491f76..89d2979a 100644 --- a/workers/npm-shrinkwrap.json +++ b/workers/npm-shrinkwrap.json @@ -4124,7 +4124,7 @@ "vend-nodejs-sdk": { "version": "1.1.1", "from": "git+https://github.com/ShoppinPal/vend-nodejs-sdk.git#fix/ritik/depreciation/consignmentApi", - "resolved": "git+https://github.com/ShoppinPal/vend-nodejs-sdk.git#6bf25b99b1476986d3ceaa3f572957faf47ea320", + "resolved": "git+https://github.com/ShoppinPal/vend-nodejs-sdk.git#553d7375fb71e5158baae219131e709fe71973b5", "dependencies": { "async": { "version": "0.9.2",