Skip to content

Commit

Permalink
return correct skuId
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Feb 22, 2022
1 parent 5821683 commit ead7d41
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/api/src/platforms/vtex/resolvers/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ export const StoreProduct: Record<string, Resolver<Root>> = {
alternateName: name ?? '',
url: value.replace('vteximg.com.br', 'vtexassets.com'),
})),
sku: ({
isVariantOf: {
skus: [sku],
},
}) => sku.id,
sku: ({ id }) => id,
gtin: ({ reference }) => reference ?? '',
review: () => [],
aggregateRating: () => ({}),
Expand Down

0 comments on commit ead7d41

Please sign in to comment.