gatsby-source-notion-churnotion 1.1.11 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
package/dist/api/getPages.js
CHANGED
@@ -54,6 +54,7 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
|
|
54
54
|
},
|
55
55
|
url: `${constants_1.COMMON_URI}/${constants_1.CATEGORY_URI}${categoryUrl}`,
|
56
56
|
books: [],
|
57
|
+
childrenNBook: [],
|
57
58
|
};
|
58
59
|
await createNode(categoryNode);
|
59
60
|
const bookRelations = page.properties?.books?.relation || null;
|
@@ -43,6 +43,7 @@ const createSchemaCustomization = ({ actions }) => {
|
|
43
43
|
churnotions: [${constants_1.NODE_TYPE.Post}] @link(by: "category", from: "id")
|
44
44
|
url: String!
|
45
45
|
books: [${constants_1.NODE_TYPE.Book}] @link(by: "id")
|
46
|
+
childrenNBook: [ID!]! @default(value: [])
|
46
47
|
}
|
47
48
|
|
48
49
|
type ${constants_1.NODE_TYPE.Book} implements Node {
|
package/dist/util/processor.js
CHANGED
@@ -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 = `${
|
87
|
+
const cacheKey = `${block.id}-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.
|
4
|
+
"version": "1.1.13",
|
5
5
|
"skipLibCheck": true,
|
6
6
|
"license": "0BSD",
|
7
7
|
"main": "./dist/gatsby-node.js",
|