Skip to content

Commit

Permalink
add log match
Browse files Browse the repository at this point in the history
  • Loading branch information
evertonvargasvtex committed Oct 25, 2024
1 parent 29f1d6c commit 45e7e12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/api/src/platforms/vtex/clients/search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export const IntelligentSearch = (
}

const match = cookies.match(/vtex_segment=([^;]*)/);

console.log("match", match)
return match ? match[1] : null;
};

Expand Down
1 change: 0 additions & 1 deletion packages/api/src/platforms/vtex/resolvers/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { SearchArgs } from '../clients/search'

export const Query = {
product: async (_: unknown, { locator }: QueryProductArgs, ctx: Context) => {
console.log("product faststore", ctx)
// Insert channel in context for later usage
const channel = findChannel(locator)
const locale = findLocale(locator)
Expand Down

0 comments on commit 45e7e12

Please sign in to comment.