From c5f18f2d715ad54a81126cba80527d3d74183bca Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 16 Nov 2025 07:07:51 +0000 Subject: [PATCH] Fix Ghost API response types in ghost-admin-api (both occurrences) cgen-bc811bd702c248eeb7018530ee10bb51 --- server/ghost-admin-api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/ghost-admin-api.ts b/server/ghost-admin-api.ts index ea3ab33f..b962fec4 100644 --- a/server/ghost-admin-api.ts +++ b/server/ghost-admin-api.ts @@ -126,7 +126,7 @@ export async function publishPostToGhost( throw new Error(`Ghost API error: ${response.statusText}`); } - const data: GhostPostResponse = await response.json(); + const data = (await response.json()) as GhostPostResponse; const createdPost = data.posts[0]; return { @@ -188,7 +188,7 @@ export async function updatePostInGhost( throw new Error(`Ghost API error: ${response.statusText}`); } - const data: GhostPostResponse = await response.json(); + const data = (await response.json()) as GhostPostResponse; const updatedPost = data.posts[0]; return {