From 289729ca54162875494cfe606f026cd5165d53f2 Mon Sep 17 00:00:00 2001 From: Iago Date: Fri, 8 Mar 2024 15:55:46 -0300 Subject: [PATCH] feat: possibility to choose how to group products in recommendations --- node/clients/search.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/node/clients/search.ts b/node/clients/search.ts index 1cd9a9b5..8365fc79 100644 --- a/node/clients/search.ts +++ b/node/clients/search.ts @@ -308,14 +308,13 @@ export class Search extends AppClient { metric: 'search-category', }) - public crossSelling = (id: string, type: SearchCrossSellingTypes, groupByProduct = true) =>{ - return this.get( + public crossSelling = (id: string, type: SearchCrossSellingTypes, groupByProduct = true) => + this.get( `/pub/products/crossselling/${type}/${id}?groupByProduct=${groupByProduct}`, { metric: 'search-crossSelling', } ) - } public filtersInCategoryFromId = (id: string | number) => this.get(