Skip to content

Commit

Permalink
Fix, review override by variations (#273)
Browse files Browse the repository at this point in the history
* wake integration

* fix: admin types and formats

* improve admin filters and variations optional on PL

* fix: infinity scroll

* include variation in buy together

* fix: buy together

* fix: wake duplicated api instance

* fix some typescript errors

* fix typescript

* checl

* add fmt-ignore

* fmt

* add deno-fmt-ignore-file

* fix: PLP SEO and rating for search console

* fix: breadcrumb url

* fix: canonical

* add title e description to query pages

* fmt

* fix: review override

---------

Co-authored-by: guitavano <tavano62@gmail.com>
  • Loading branch information
IncognitaDev and guitavano authored Jan 5, 2024
1 parent 94c36e9 commit a094e41
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wake/utils/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ export const toProduct = (
}
});
}

const review = (variant as SingleProductFragment).reviews?.map((review) => ({
"@type": "Review" as const,
author: [
Expand Down Expand Up @@ -388,9 +387,7 @@ export const toProduct = (
logo: variant.productBrand?.fullUrlLogo ??
undefined,
},
aggregateRating,
additionalProperty,
review,
offers: {
"@type": "AggregateOffer",
highPrice: variant.prices?.price,
Expand All @@ -411,6 +408,8 @@ export const toProduct = (
},
...variantSelected,
isSimilarTo,
review,
aggregateRating,
isVariantOf: {
"@type": "ProductGroup",
url: getProductUrl(variant, base).href,
Expand Down

0 comments on commit a094e41

Please sign in to comment.