From f837aeee1a5c147256933c3ba0c7a6d147399eef Mon Sep 17 00:00:00 2001 From: Fernando Lucchesi Date: Thu, 19 Oct 2023 11:46:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20bug=20on=20GROQ=20query?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- search/IndexSanityContent/magazine/sanity.ts | 4 ++-- search/IndexSanityContent/topic/sanity.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/search/IndexSanityContent/magazine/sanity.ts b/search/IndexSanityContent/magazine/sanity.ts index 9c078d3a3..8ae03f927 100644 --- a/search/IndexSanityContent/magazine/sanity.ts +++ b/search/IndexSanityContent/magazine/sanity.ts @@ -28,10 +28,10 @@ export const query = /* groq */ `*[_type == "magazine" && _lang == $lang && !(_i "textBlocks": content[_type == "textBlock"]{ "_key": _key, "title": select( - "isBigText" == true => { + isBigText == true => pt::text(bigTitle), pt::text(title) - }), + ), "ingress": pt::text(ingress), "text": pt::text(text) // TODO: Do this manually to cover all cases }, diff --git a/search/IndexSanityContent/topic/sanity.ts b/search/IndexSanityContent/topic/sanity.ts index 8280a0e80..a55a88d56 100644 --- a/search/IndexSanityContent/topic/sanity.ts +++ b/search/IndexSanityContent/topic/sanity.ts @@ -12,10 +12,10 @@ export const query = /* groq */ `*[_type match "route_" + $lang + "*" && content "textBlocks": content->content[_type == "textBlock"]{ "_key": _key, "title": select( - "isBigText" == true => { + isBigText == true => pt::text(bigTitle), pt::text(title) - }), + ), "ingress": pt::text(ingress), "text": pt::text(text) // TODO: Do this manually to cover all cases },