From fc0f0e30b106e1a26a3292cae2e9ed24fddcc5ee Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Tue, 8 Apr 2025 11:07:02 +0000 Subject: [PATCH] Merged in fix/invalidate-uid (pull request #1755) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: revalidate with correct uid * fix: revalidate with correct uid Approved-by: Joakim Jäderberg --- apps/scandic-web/app/api/web/revalidate/route.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/scandic-web/app/api/web/revalidate/route.ts b/apps/scandic-web/app/api/web/revalidate/route.ts index 6fc7a08a9..096c38a70 100644 --- a/apps/scandic-web/app/api/web/revalidate/route.ts +++ b/apps/scandic-web/app/api/web/revalidate/route.ts @@ -23,7 +23,6 @@ const validateJsonBody = z.object({ data: z.object({ content_type: z.object({ uid: z.string(), - content_type_uid: z.string(), }), entry: z.object({ breadcrumbs: z @@ -91,10 +90,7 @@ export async function POST(request: NextRequest) { const cacheClient = await getCacheClient() - const contentTypeUidTag = generateTag( - entryLocale, - content_type.content_type_uid - ) + const contentTypeUidTag = generateTag(entryLocale, content_type.uid) console.info(`Revalidating tag by content_type_uid: ${contentTypeUidTag}`) revalidateTag(contentTypeUidTag) await cacheClient.deleteKey(contentTypeUidTag, { fuzzy: true })