From 8122ad3f7af5233780136d057daeb6d6d9137778 Mon Sep 17 00:00:00 2001 From: mottox2 Date: Mon, 18 Jun 2018 20:45:24 +0900 Subject: [PATCH] Rename boundActionCreators to actions --- gatsby-node.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index cc4463e..3b59f1e 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -3,8 +3,8 @@ const Promise = require('bluebird') const path = require('path') const { createFilePath } = require('gatsby-source-filesystem') -exports.createPages = ({ graphql, boundActionCreators }) => { - const { createPage } = boundActionCreators +exports.createPages = ({ graphql, actions }) => { + const { createPage } = actions return new Promise((resolve, reject) => { const blogPost = path.resolve('./src/templates/blog-post.js') @@ -54,8 +54,8 @@ exports.createPages = ({ graphql, boundActionCreators }) => { }) } -exports.onCreateNode = ({ node, boundActionCreators, getNode }) => { - const { createNodeField } = boundActionCreators +exports.onCreateNode = ({ node, actions, getNode }) => { + const { createNodeField } = actions if (node.internal.type === `MarkdownRemark`) { const value = createFilePath({ node, getNode })