@infrab4a/connect-angular 4.1.4-beta.5 → 4.1.4-beta.6
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 +2 -3
- package/fesm2015/infrab4a-connect-angular.mjs +1 -2
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +1 -2
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1538,8 +1538,7 @@ class CatalogService {
|
|
|
1538
1538
|
}
|
|
1539
1539
|
async findCatalogByTermAndSortByMostRevelant(options, limits) {
|
|
1540
1540
|
const productIds = await this.findCatalogIdsByElasticSearch(options.term);
|
|
1541
|
-
|
|
1542
|
-
const limitedProductId = productIds.slice(limits.offset, limits.limit);
|
|
1541
|
+
const limitedProductId = productIds.slice(limits.offset, limits.offset + limits.limit);
|
|
1543
1542
|
const productResult = await this.productRepository.findCatalog({
|
|
1544
1543
|
filters: { id: { operator: Where.IN, value: limitedProductId } },
|
|
1545
1544
|
}, options?.mainGender || this.shop === Shops.MENSMARKET ? 'male' : 'female');
|