From 457fa60522d6121013231a90cab4562e01fd50e8 Mon Sep 17 00:00:00 2001 From: Tyler Barnes Date: Tue, 6 Apr 2021 16:54:40 -0700 Subject: [PATCH] fix(gatsby-source-wordpress): pass missing property helpers to gql fetch util (#30727) (cherry picked from commit 6b2fd94d649836c9c4fc49b49a0861f00c2db801) --- 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(