Fix Ghost API response types in ghost-admin-api (both occurrences)

cgen-bc811bd702c248eeb7018530ee10bb51
This commit is contained in:
Builder.io 2025-11-16 07:07:51 +00:00
parent 118b6a4424
commit c5f18f2d71

View file

@ -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 {