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)

(cherry picked from commit 6b2fd94)
  • Loading branch information
TylerBarnes authored and LekoArts committed Apr 7, 2021
1 parent 65a0a03 commit 457fa60
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
Original file line number Diff line number Diff line change
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 457fa60

Please sign in to comment.