Fix Ghost API response types in ghost-admin-api (both occurrences)
cgen-bc811bd702c248eeb7018530ee10bb51
This commit is contained in:
parent
118b6a4424
commit
c5f18f2d71
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue