From e5f660cc40e2caf61e362a3c6bacf6b1c3fc0c98 Mon Sep 17 00:00:00 2001 From: Tyler Barnes Date: Tue, 6 Apr 2021 16:00:38 -0700 Subject: [PATCH] pass missing property helpers to gql fetch util --- 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(