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, ]); }