Skip to content

Commit

Permalink
Extract getNode method from args, not boundActionCreators (#4907)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyward authored and KyleAMathews committed Apr 10, 2018
1 parent 94c5773 commit a00bf6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/gatsby-source-contentful/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ exports.setFieldsOnGraphQLNodeType = require(`./extend-node-type`).extendNodeTyp
*/

exports.sourceNodes = async (
{ boundActionCreators, getNodes, hasNodeChanged, store },
{ boundActionCreators, getNode, getNodes, hasNodeChanged, store },
{ spaceId, accessToken, host }
) => {
const {
createNode,
deleteNode,
getNode,
touchNode,
setPluginStatus,
} = boundActionCreators
Expand Down

0 comments on commit a00bf6e

Please sign in to comment.