From 38c0b8d5611e45026f875958b027332a4830aa30 Mon Sep 17 00:00:00 2001 From: Jason Lengstorf Date: Wed, 9 Jan 2019 12:25:15 -0800 Subject: [PATCH] fix: update calls to sourceNodes (#10955) - we still had v1 syntax in here - `createNodeId` was destructured improperly - removed unused var --- packages/gatsby-source-shopify/src/gatsby-node.js | 6 +----- packages/gatsby-source-shopify/src/nodes.js | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/gatsby-source-shopify/src/gatsby-node.js b/packages/gatsby-source-shopify/src/gatsby-node.js index b73c88134ec44..fb63fe7414660 100644 --- a/packages/gatsby-source-shopify/src/gatsby-node.js +++ b/packages/gatsby-source-shopify/src/gatsby-node.js @@ -23,11 +23,7 @@ import { } from "./queries" export const sourceNodes = async ( - { - boundActionCreators: { createNode, touchNode, createNodeId }, - store, - cache, - }, + { actions: { createNode, touchNode }, createNodeId, store, cache }, { shopName, accessToken, verbose = true } ) => { const client = createClient(shopName, accessToken) diff --git a/packages/gatsby-source-shopify/src/nodes.js b/packages/gatsby-source-shopify/src/nodes.js index 0f7f4b1efed03..25e29d3dadf8d 100644 --- a/packages/gatsby-source-shopify/src/nodes.js +++ b/packages/gatsby-source-shopify/src/nodes.js @@ -21,7 +21,7 @@ const { createNodeFactory, generateNodeId } = createNodeHelpers({ }) const downloadImageAndCreateFileNode = async ( - { id, url }, + { url }, { createNode, createNodeId, touchNode, store, cache } ) => { let fileNodeID