Skip to content

Commit

Permalink
fix: update calls to sourceNodes (#10955)
Browse files Browse the repository at this point in the history
- we still had v1 syntax in here
- `createNodeId` was destructured improperly
- removed unused var
  • Loading branch information
jlengstorf authored and DSchau committed Jan 9, 2019
1 parent 1aab824 commit 38c0b8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions packages/gatsby-source-shopify/src/gatsby-node.js
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-source-shopify/src/nodes.js
Expand Up @@ -21,7 +21,7 @@ const { createNodeFactory, generateNodeId } = createNodeHelpers({
})

const downloadImageAndCreateFileNode = async (
{ id, url },
{ url },
{ createNode, createNodeId, touchNode, store, cache }
) => {
let fileNodeID
Expand Down

0 comments on commit 38c0b8d

Please sign in to comment.