Skip to content

Commit

Permalink
fix(gatsby-source-wordpress): pass missing property helpers to gql fe…
Browse files Browse the repository at this point in the history
…tch util (#30727)
  • Loading branch information
TylerBarnes committed Apr 6, 2021
1 parent c6fa488 commit 6b2fd94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/gatsby-source-wordpress/src/steps/preview/index.ts
Expand Up @@ -310,9 +310,10 @@ export const sourcePreview = async (
* It first sources all pending preview actions, then calls sourcePreview() for each of them.
*/
export const sourcePreviews = async (
{ webhookBody, reporter }: GatsbyHelpers,
helpers: GatsbyHelpers,
pluginOptions: IPluginOptions
): Promise<void> => {
const { webhookBody, reporter } = helpers
const {
debug: { preview: inPreviewDebugModeOption },
} = getPluginOptions()
Expand Down Expand Up @@ -341,6 +342,7 @@ export const sourcePreviews = async (
WPGatsbyPreview: webhookBody.token,
WPGatsbyPreviewUser: webhookBody.userDatabaseId,
},
helpers,
query: /* GraphQL */ `
query PREVIEW_ACTIONS($after: String) {
actionMonitorActions(
Expand Down

0 comments on commit 6b2fd94

Please sign in to comment.