gatsby-source-notion-churnotion 1.0.78 → 1.0.80

Sign up to get free protection for your applications and to get access to all the features.
@@ -59,7 +59,7 @@ const getBooks = async ({ bookDatabaseId, reporter, getCache, createNode, create
59
59
  update_date: page.last_edited_time,
60
60
  url: `${constants_1.COMMON_URI}/${constants_1.BOOK_URI}/${slug}`,
61
61
  book_category: book_category,
62
- book_image: bookImageNode,
62
+ book_image: bookImageNode.id,
63
63
  };
64
64
  reporter.info(`[DEBUG] Book ${bookNode.book_name} has book_category: ${bookNode.book_category}`);
65
65
  createNode(bookNode);
@@ -53,6 +53,7 @@ const createSchemaCustomization = ({ actions }) => {
53
53
  children: [${constants_1.NODE_TYPE.Post}] @link(by: "book", from: "id")
54
54
  url: String!
55
55
  book_category: ${constants_1.NODE_TYPE.Category} @link(by: "id")
56
+ book_image: File @link(by: "id", from: "book_image")
56
57
  }
57
58
 
58
59
  type ${constants_1.NODE_TYPE.Metadata} implements Node {
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.78",
4
+ "version": "1.0.80",
5
5
  "skipLibCheck": true,
6
6
  "license": "0BSD",
7
7
  "main": "./dist/gatsby-node.js",