From b75953ede5f86028df0fdbd1ec1d18c757851a9f Mon Sep 17 00:00:00 2001 From: Sophie McGarity Date: Wed, 9 Nov 2022 10:25:08 -0800 Subject: [PATCH] added store --- .../steps/source-nodes/create-nodes/create-local-file-node.js | 1 + .../src/steps/source-nodes/create-nodes/process-node.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/create-local-file-node.js b/packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/create-local-file-node.js index 99fcf7255a1eb..5eb57abe17efd 100644 --- a/packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/create-local-file-node.js +++ b/packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/create-local-file-node.js @@ -265,6 +265,7 @@ export const createLocalFileNode = async ({ const createFileNodeRequirements = { parentNodeId: mediaItemNode.id, + store: gatsbyStore, cache, createNode, createNodeId, diff --git a/packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/process-node.js b/packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/process-node.js index 3552d2cb5196e..be4992bd4e4f6 100644 --- a/packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/process-node.js +++ b/packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/process-node.js @@ -625,7 +625,8 @@ export const replaceNodeHtmlImages = async ({ contentDigest: imageNode.modifiedGmt, }, }, - helpers.actions + helpers.actions, + gatsbyStore ) } } catch (e) {