gatsby-source-notion-churnotion 1.1.14 → 1.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,6 +51,7 @@ const createSchemaCustomization = ({ actions }) => {
51
51
  create_date: Date! @dateformat
52
52
  update_date: Date! @dateformat
53
53
  children: [${constants_1.NODE_TYPE.Post}] @link(by: "book", from: "id")
54
+ childrenChurnotion: [${constants_1.NODE_TYPE.Post}]
54
55
  url: String!
55
56
  book_category: ${constants_1.NODE_TYPE.Category} @link(by: "id", from: "book_category")
56
57
  book_image: File @link(by: "id", from: "book_image")
@@ -84,7 +84,7 @@ const processImageBlock = async (block, actions, getCache, createNodeId, reporte
84
84
  : block.image?.file?.url;
85
85
  if (!imageUrl)
86
86
  return null;
87
- const cacheKey = `${block.id}-post-image`;
87
+ const cacheKey = `${imageUrl}-post-image`;
88
88
  const cachedFileNodeId = await cache.get(cacheKey);
89
89
  if (cachedFileNodeId) {
90
90
  reporter.info(`[CACHE HIT] Image already processed: ${imageUrl}`);
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.1.14",
4
+ "version": "1.1.16",
5
5
  "skipLibCheck": true,
6
6
  "license": "0BSD",
7
7
  "main": "./dist/gatsby-node.js",