gatsby-source-notion-churnotion 1.0.81 → 1.0.82
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/getPages.js +2 -2
- package/package.json +1 -1
package/dist/api/getPages.js
CHANGED
@@ -55,7 +55,6 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
|
|
55
55
|
books: [],
|
56
56
|
};
|
57
57
|
await createNode(categoryNode);
|
58
|
-
// Find Book
|
59
58
|
const bookRelations = page.properties?.books?.relation || null;
|
60
59
|
if (bookRelations) {
|
61
60
|
bookRelations.forEach((relation) => {
|
@@ -142,10 +141,11 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
|
|
142
141
|
const bookNodeId = createNodeId(`${bookId}-book`);
|
143
142
|
const bookNode = getNode(bookNodeId);
|
144
143
|
const [imageNode, tableOfContents, updatedBlocks, rawText] = await (0, processor_1.processor)(pageData.results, actions, getCache, createNodeId, reporter, cache);
|
144
|
+
reporter.error(`[Test] ${page.properties?.description?.rich_text?.[0]?.plain_text}`);
|
145
145
|
const postNode = {
|
146
146
|
id: nodeId,
|
147
147
|
category: parentCategoryId,
|
148
|
-
book: bookNode
|
148
|
+
book: bookNode?.id,
|
149
149
|
book_index: page.properties?.bookIndex?.number || 0,
|
150
150
|
title: title,
|
151
151
|
content: updatedBlocks,
|
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.
|
4
|
+
"version": "1.0.82",
|
5
5
|
"skipLibCheck": true,
|
6
6
|
"license": "0BSD",
|
7
7
|
"main": "./dist/gatsby-node.js",
|