@infrab4a/connect-angular 4.5.5-beta.0 → 4.5.5

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.
@@ -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
- .find({
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));
@@ -1763,7 +1764,6 @@ class CatalogService {
1763
1764
  const totalResult = await this.productRepository.findCatalog({
1764
1765
  filters: {
1765
1766
  id: { operator: Where.IN, value: mostRelevantProductsIds },
1766
- ...this.buildFilterQuery(options?.filters || {}),
1767
1767
  },
1768
1768
  orderBy: this.buildSortQuery('news'),
1769
1769
  options: {