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 })