Skip to content

Commit

Permalink
Fix formatting in BrxProductSearchAdapter and ensure consistent code …
Browse files Browse the repository at this point in the history
…style
  • Loading branch information
vahid.mehrjouei committed Jan 3, 2025
1 parent e9d5560 commit 7cd0442
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class BrxProductSearchAdapter implements ProductSearchAdapter {
protected http: HttpClient,
protected converter: ConverterService,
protected brxEndpointService: BrxEndpointService,
) { }
) {}

search(query = '', searchConfig: BrxSearchConfig = DEFAULT_SEARCH_CONFIG): Observable<ProductSearchPage> {
// console.log('[** Product Search Adapter - Custom Brx API Req---]', query, searchConfig);
Expand Down Expand Up @@ -103,7 +103,7 @@ export class BrxProductSearchAdapter implements ProductSearchAdapter {
searchByCodes(codes: string[]) {
return this.http.get<any[]>(this.getSearchEndpoint(codes.toString(), {})).pipe(
this.converter.pipeableMany(PRODUCT_NORMALIZER),
map((products) => ({ products }))
map((products) => ({ products })),
);
}

Expand Down

0 comments on commit 7cd0442

Please sign in to comment.