@infrab4a/connect-angular 4.5.4 → 4.5.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/services/catalog/catalog.service.mjs +4 -3
- package/fesm2015/infrab4a-connect-angular.mjs +2 -2
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +2 -1
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/services/catalog/catalog.service.d.ts +1 -1
|
@@ -1722,10 +1722,11 @@ class CatalogService {
|
|
|
1722
1722
|
if (this.hasCategory(options) && options.sort === 'most-relevant') {
|
|
1723
1723
|
const mostRelevant = options.category.mostRelevant ?? [];
|
|
1724
1724
|
const productsIds = await this.productRepository
|
|
1725
|
-
.
|
|
1725
|
+
.findCatalog({
|
|
1726
1726
|
fields: ['id'],
|
|
1727
1727
|
filters: {
|
|
1728
1728
|
...(await this.buildMainFilter(options)),
|
|
1729
|
+
...this.buildFilterQuery(options?.filters || {}),
|
|
1729
1730
|
},
|
|
1730
1731
|
})
|
|
1731
1732
|
.then((products) => products.data.map((product) => product.id));
|