From 56f4b66804ccff5a0423766600559af235b4bc3d Mon Sep 17 00:00:00 2001 From: Leonardo Nicorena Date: Mon, 9 Mar 2020 15:10:15 -0300 Subject: [PATCH 1/2] fix msi default stock id value --- src/api/stock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/stock.js b/src/api/stock.js index 8e8234d3..9f679e26 100755 --- a/src/api/stock.js +++ b/src/api/stock.js @@ -12,7 +12,7 @@ export default ({ config, db }) => { const _getStockId = (storeCode) => { let storeView = config.storeViews[storeCode] - return storeView ? storeView.msi.stockId : config.defaultStockId + return storeView ? storeView.msi.stockId : config.msi.defaultStockId }; /** From 4da3eaf528d389780def6b3658b4eca78612226e Mon Sep 17 00:00:00 2001 From: Leonardo Nicorena Date: Tue, 10 Mar 2020 09:32:29 -0300 Subject: [PATCH 2/2] update changelog for fix related to msi in stock --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f5cd7cc..55eea6d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - add es7 support for map url module and fixed default index for es config - @gibkigonzo - Add correct paths for production build - @cewald (#407) +- Fix MSI default stock id value ## [1.11.0] - 2019.12.20