Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 40b6bb4

Browse files
didkantkostuch
authored andcommitted
Allow for configurable children (even if set as "not visible individually")
1 parent 63fca77 commit 40b6bb4

File tree

1 file changed

+1
-1
lines changed
  • src/api/extensions/elastic-stock

1 file changed

+1
-1
lines changed

src/api/extensions/elastic-stock/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = ({
1515
index: storeView.elasticsearch.index, // current index name
1616
type: 'product',
1717
_source_includes: ['stock'],
18-
body: bodybuilder().filter('terms', 'visibility', [2, 3, 4]).andFilter('term', 'status', 1).andFilter('terms', 'sku', skus).build()
18+
body: bodybuilder().filter('term', 'status', 1).andFilter('terms', 'sku', skus).build()
1919
}, 'product', config)
2020
return getElasticClient(config).search(esQuery).then((products) => { // we're always trying to populate cache - when online
2121
return getHits(products).map(el => { return el._source.stock })

0 commit comments

Comments
 (0)