gatsby-source-notion-churnotion 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -145,13 +145,14 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
145
145
  };
146
146
  await createNode(postNode);
147
147
  // book과 post 부모-자식 관계 설정
148
- const bookNode = getNode(bookId);
148
+ const bookNodeId = createNodeId(`${bookId}-book`);
149
+ const bookNode = getNode(bookNodeId);
149
150
  if (bookNode) {
150
151
  createParentChildLink({
151
152
  parent: bookNode,
152
153
  child: postNode,
153
154
  });
154
- reporter.info(`[SUCCESS] Linked tag: ${bookNode.book_name} -> page: ${postNode.title}`);
155
+ reporter.info(`[SUCCESS] Linked book: ${bookNode.book_name} -> page: ${postNode.title}`);
155
156
  }
156
157
  // tag와 post 부모-자식 관계 설정
157
158
  tagIds.forEach((tagId) => {
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.11",
4
+ "version": "1.0.12",
5
5
  "skipLibCheck": true,
6
6
  "license": "0BSD",
7
7
  "main": "./dist/gatsby-node.js",