gatsby-source-notion-churnotion 1.0.18 → 1.0.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,7 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
39
39
  reporter.warn(`[WARNING] Category without a title detected: ${categoryJsonData.id}`);
40
40
  }
41
41
  const nodeId = createNodeId(`${categoryJsonData.id}-category`);
42
- categoryUrl += `${categoryUrl.length === 0 ? `${constants_1.CATEGORY_URI}` : ``}/${slug}`;
42
+ categoryUrl += `/${slug}`;
43
43
  const categoryNode = {
44
44
  id: nodeId,
45
45
  category_name: title,
@@ -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}/${categoryUrl}`,
56
+ url: `${constants_1.COMMON_URI}/${constants_1.CATEGORY_URI}${categoryUrl}`,
57
57
  };
58
58
  createNode(categoryNode);
59
59
  if (parentCategoryId && categoryNode) {
@@ -149,7 +149,7 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
149
149
  },
150
150
  tags: tagIds,
151
151
  parent: null,
152
- url: `${constants_1.COMMON_URI}${categoryUrl}/${slug}`,
152
+ url: `${constants_1.COMMON_URI}/${constants_1.POST_URI}${categoryUrl}/${slug}`,
153
153
  };
154
154
  await createNode(postNode);
155
155
  // book과 post 부모-자식 관계 설정
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.18",
4
+ "version": "1.0.19",
5
5
  "skipLibCheck": true,
6
6
  "license": "0BSD",
7
7
  "main": "./dist/gatsby-node.js",