From b2ed6c101e684b0fef6bb404ea4e7e56bd960818 Mon Sep 17 00:00:00 2001 From: Sophie McGarity <48594165+sophiemcgarity@users.noreply.github.com> Date: Tue, 15 Nov 2022 08:21:58 -0800 Subject: [PATCH] fix(gatsby-source-wordpress) pass store for auth (#37006) added store Co-authored-by: Ward Peeters (cherry picked from commit 57725954a2d35906daec2c521b2e0dd718639f22) --- .../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) {