Skip to content

Commit

Permalink
feat: possibility to choose how to group products in recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
iago1501 committed Mar 8, 2024
1 parent cdb4c84 commit 289729c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions node/clients/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,13 @@ export class Search extends AppClient {
metric: 'search-category',
})

public crossSelling = (id: string, type: SearchCrossSellingTypes, groupByProduct = true) =>{
return this.get<SearchProduct[]>(
public crossSelling = (id: string, type: SearchCrossSellingTypes, groupByProduct = true) =>
this.get<SearchProduct[]>(
`/pub/products/crossselling/${type}/${id}?groupByProduct=${groupByProduct}`,
{
metric: 'search-crossSelling',
}
)
}

public filtersInCategoryFromId = (id: string | number) =>
this.get<FilterListTreeCategoryById[]>(
Expand Down

0 comments on commit 289729c

Please sign in to comment.