gatsby-source-notion-churnotion 1.0.25 → 1.0.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -158,7 +158,6 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
158
158
  parent: null,
159
159
  url: `${constants_1.COMMON_URI}/${constants_1.POST_URI}${categoryUrl}/${slug}`,
160
160
  thumbnail: imageNode,
161
- ...gatsbyImageData,
162
161
  };
163
162
  await createNode(postNode);
164
163
  // book과 post 부모-자식 관계 설정
@@ -1,3 +1,3 @@
1
1
  import { Actions, GatsbyCache, Reporter } from "gatsby";
2
2
  import { MdBlock } from "notion-to-md/build/types";
3
- export declare const processBlocks: (blocks: MdBlock[], actions: Actions, getCache: (this: void, id: string) => GatsbyCache, createNodeId: (this: void, input: string) => string, reporter: Reporter) => Promise<import("gatsby-source-filesystem").FileSystemNode | null>;
3
+ export declare const processBlocks: (blocks: MdBlock[], actions: Actions, getCache: (this: void, id: string) => GatsbyCache, createNodeId: (this: void, input: string) => string, reporter: Reporter) => Promise<string | null>;
@@ -24,7 +24,7 @@ const processBlocks = async (blocks, actions, getCache, createNodeId, reporter)
24
24
  if (fileNode) {
25
25
  block.parent = fileNode.id;
26
26
  if (!thumbnail)
27
- thumbnail = fileNode;
27
+ thumbnail = fileNode.id;
28
28
  reporter.info(`[SUCCESS] Image processed: ${fileNode.id}`);
29
29
  }
30
30
  }
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.25",
4
+ "version": "1.0.26",
5
5
  "skipLibCheck": true,
6
6
  "license": "0BSD",
7
7
  "main": "./dist/gatsby-node.js",