gatsby-source-notion-churnotion 1.0.16 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,7 +53,7 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
53
53
  .update(JSON.stringify(categoryJsonData))
54
54
  .digest(`hex`),
55
55
  },
56
- url: `${constants_1.COMMON_URI}${constants_1.CATEGORY_URI}/${categoryUrl}`,
56
+ url: `${constants_1.COMMON_URI}/${categoryUrl}`,
57
57
  };
58
58
  createNode(categoryNode);
59
59
  if (parentCategoryId && categoryNode) {
@@ -80,7 +80,7 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
80
80
  .createHash(`md5`)
81
81
  .update(JSON.stringify(title))
82
82
  .digest(`hex`));
83
- if (!title) {
83
+ if (!page.properties?.[`이름`]?.title?.[0]?.plain_text) {
84
84
  reporter.warn(`[WARNING] Category without a title detected: ${page.id}`);
85
85
  }
86
86
  const nodeId = createNodeId(`${page.id}-page`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gatsby-source-notion-churnotion",
3
3
  "description": "Gatsby plugin that can connect with One Notion Database RECURSIVELY using official API",
4
- "version": "1.0.16",
4
+ "version": "1.0.17",
5
5
  "skipLibCheck": true,
6
6
  "license": "0BSD",
7
7
  "main": "./dist/gatsby-node.js",