From 29fe04995f7cf856bdb58d544a89991e25c0c67b Mon Sep 17 00:00:00 2001 From: GatsbyJS Bot Date: Wed, 7 Apr 2021 07:31:11 -0400 Subject: [PATCH] fix(gatsby-source-wordpress): pass missing property helpers to gql fetch util (#30727) (#30731) (cherry picked from commit 6b2fd94d649836c9c4fc49b49a0861f00c2db801) Co-authored-by: Tyler Barnes --- packages/gatsby-source-wordpress/src/steps/preview/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-source-wordpress/src/steps/preview/index.ts b/packages/gatsby-source-wordpress/src/steps/preview/index.ts index ef44cfda29070..c0e58dd3b4d48 100644 --- a/packages/gatsby-source-wordpress/src/steps/preview/index.ts +++ b/packages/gatsby-source-wordpress/src/steps/preview/index.ts @@ -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 => { + const { webhookBody, reporter } = helpers const { debug: { preview: inPreviewDebugModeOption }, } = getPluginOptions() @@ -341,6 +342,7 @@ export const sourcePreviews = async ( WPGatsbyPreview: webhookBody.token, WPGatsbyPreviewUser: webhookBody.userDatabaseId, }, + helpers, query: /* GraphQL */ ` query PREVIEW_ACTIONS($after: String) { actionMonitorActions(