gatsby-source-notion-churnotion 1.0.39 → 1.0.41
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/getBooks.js +4 -1
- package/package.json +1 -1
package/dist/api/getBooks.js
CHANGED
@@ -19,7 +19,10 @@ const getBooks = async ({ bookDatabaseId, reporter, createNode, createNodeId, ge
|
|
19
19
|
const nodeId = createNodeId(`${page.id}-book`);
|
20
20
|
const slug = page.properties?.slug?.rich_text?.[0]?.plain_text || `unnamed-slug`;
|
21
21
|
const categoryId = page.properties?.category?.relation?.[0]?.id || null;
|
22
|
-
|
22
|
+
let book_category = null;
|
23
|
+
if (categoryId) {
|
24
|
+
book_category = createNodeId(`${categoryId}-category`);
|
25
|
+
}
|
23
26
|
const bookNode = {
|
24
27
|
id: nodeId,
|
25
28
|
book_name: page.properties?.[`이름`]?.title?.[0]?.plain_text || `Unnamed`,
|
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.41",
|
5
5
|
"skipLibCheck": true,
|
6
6
|
"license": "0BSD",
|
7
7
|
"main": "./dist/gatsby-node.js",
|