@infrab4a/connect-angular 5.2.2-beta.2 → 5.2.2-beta.3
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/strategies/category-search.strategy.mjs +1 -9
- package/fesm2015/infrab4a-connect-angular.mjs +0 -8
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +0 -8
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1501,8 +1501,6 @@ class CategorySearchStrategy {
|
|
|
1501
1501
|
fields,
|
|
1502
1502
|
});
|
|
1503
1503
|
}
|
|
1504
|
-
// eslint-disable-next-line no-console
|
|
1505
|
-
console.log('return searchDefault');
|
|
1506
1504
|
return this.searchDefault({
|
|
1507
1505
|
category,
|
|
1508
1506
|
filters,
|
|
@@ -1548,8 +1546,6 @@ class CategorySearchStrategy {
|
|
|
1548
1546
|
distinct: ['brand'],
|
|
1549
1547
|
},
|
|
1550
1548
|
};
|
|
1551
|
-
// eslint-disable-next-line no-console
|
|
1552
|
-
console.log('repoParams', JSON.stringify(repoParams));
|
|
1553
1549
|
return productCatalog.productRepository.findCatalog(repoParams, null, optionsCache);
|
|
1554
1550
|
}
|
|
1555
1551
|
async getProductIds(category, filters, optionsCache) {
|
|
@@ -1566,8 +1562,6 @@ class CategorySearchStrategy {
|
|
|
1566
1562
|
.then((products) => products.data.map((product) => product.id));
|
|
1567
1563
|
}
|
|
1568
1564
|
async findAndSortByMostRelevant(params) {
|
|
1569
|
-
// eslint-disable-next-line no-console
|
|
1570
|
-
console.log('shoudl not enter findAndSortByMostRelevant');
|
|
1571
1565
|
const { mostRelevants, productIds, filters, shop, mainGender, optionsCache, fields, limits } = params;
|
|
1572
1566
|
const productCatalog = this.repositoryService.getProductCatalog();
|
|
1573
1567
|
const filterHelper = this.helpersService.getFilterHelper();
|
|
@@ -1589,8 +1583,6 @@ class CategorySearchStrategy {
|
|
|
1589
1583
|
return this.sortProductsByRelevance(totalResult, mostRelevants, limits);
|
|
1590
1584
|
}
|
|
1591
1585
|
sortProductsByRelevance(totalResult, mostRelevants, limits) {
|
|
1592
|
-
// eslint-disable-next-line no-console
|
|
1593
|
-
console.log('shoudl not enter sortProductsByRelevance');
|
|
1594
1586
|
const mostRelevantWithoutStock = totalResult.data.filter((product) => mostRelevants.includes(product.id) && product.stock.quantity <= 0);
|
|
1595
1587
|
const firstProducts = totalResult.data
|
|
1596
1588
|
.filter((product) => mostRelevants.includes(product.id) && product.stock.quantity > 0)
|