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 diff --git a/src/api/stock.ts b/src/api/stock.ts index 8e8234d3..9f679e26 100755 --- a/src/api/stock.ts +++ b/src/api/stock.ts @@ -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 }; /**