From 539e1a9e38c87a97c56184af64a3e9bebfcb159f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Arod?= Date: Wed, 23 Oct 2024 17:46:49 +0200 Subject: [PATCH] fix: utilise le callaout block de partout --- src/notion/publish/v2/publishStatsToPage.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/notion/publish/v2/publishStatsToPage.ts b/src/notion/publish/v2/publishStatsToPage.ts index 2a67495..4abeb58 100644 --- a/src/notion/publish/v2/publishStatsToPage.ts +++ b/src/notion/publish/v2/publishStatsToPage.ts @@ -5,7 +5,7 @@ import { } from "../../../statistiques/v2/desc/StatsDesc"; import { createStatGroupChildrenListItemBlock } from "./createStatGroupListItemBlock"; import { updatePageContent } from "./updatePageContent"; -import { createParagraphBlock } from "../blocks/createParagraphBlock"; +import { createCalloutBlock } from "../blocks/createCalloutBlock"; export async function publishStatsToPage( notionClient: Client, @@ -16,9 +16,9 @@ export async function publishStatsToPage( ) { const statsBlocks = createStatGroupChildrenListItemBlock(descriptor, stats); - const textBlock = createParagraphBlock(pageHeader); + const headerBlock = createCalloutBlock(pageHeader); await updatePageContent(notionClient, statsPageId, [ - textBlock, + headerBlock, ...statsBlocks, ]); }