gatsby-source-notion-database
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -11,5 +11,5 @@ const Notabase = require("notabase") | ||
let [tableName, collection] = i | ||
await genApiData(collection, tableName, 'id', createNode, createNodeId, createContentDigest, settings) | ||
await genApiData(nb, collection, tableName, 'id', createNode, createNodeId, createContentDigest, settings) | ||
})) | ||
return | ||
} |
{ | ||
"name": "gatsby-source-notion-database", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "Load data from Notion's database", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -45,3 +45,3 @@ const getPageHtml = require('./getPageHtml') | ||
async function genApiData(collection, tableName, key, createNode, createNodeId, createContentDigest, settings) { | ||
async function genApiData(nb, collection, tableName, key, createNode, createNodeId, createContentDigest, settings) { | ||
console.log(`🌈fetch data from notion: ${tableName}`) | ||
@@ -48,0 +48,0 @@ let props = collection.props.filter(i => !(i === '_raw')) |
23992