From a094e4115454c88e5fbd65b8525315f89ae1240f Mon Sep 17 00:00:00 2001 From: Luis Sousa Date: Fri, 5 Jan 2024 11:08:13 -0300 Subject: [PATCH] Fix, review override by variations (#273) * 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 --- wake/utils/transform.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wake/utils/transform.ts b/wake/utils/transform.ts index 5510572f7..a8eab6c1b 100644 --- a/wake/utils/transform.ts +++ b/wake/utils/transform.ts @@ -327,7 +327,6 @@ export const toProduct = ( } }); } - const review = (variant as SingleProductFragment).reviews?.map((review) => ({ "@type": "Review" as const, author: [ @@ -388,9 +387,7 @@ export const toProduct = ( logo: variant.productBrand?.fullUrlLogo ?? undefined, }, - aggregateRating, additionalProperty, - review, offers: { "@type": "AggregateOffer", highPrice: variant.prices?.price, @@ -411,6 +408,8 @@ export const toProduct = ( }, ...variantSelected, isSimilarTo, + review, + aggregateRating, isVariantOf: { "@type": "ProductGroup", url: getProductUrl(variant, base).href,