Skip to content

Commit a95a4fc

Browse files
author
Erik Guzman
authored
Merge pull request #1 from thomasfortes/fix_childern_typo
Fix childern to children typo
2 parents e1f4081 + b73bb92 commit a95a4fc

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

fixture/vcr_cassettes/post_create_page_type_database.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"request": {
4-
"body": "{\"childern\":[],\"parent\":{\"database_id\":\"ee90be7f3fd14fd5961ef4203c7d9a81\"},\"properties\":{\"title\":{\"title\":[{\"text\":{\"content\":\"Create Page Database\"},\"type\":\"text\"}]}}}",
4+
"body": "{\"children\":[],\"parent\":{\"database_id\":\"ee90be7f3fd14fd5961ef4203c7d9a81\"},\"properties\":{\"title\":{\"title\":[{\"text\":{\"content\":\"Create Page Database\"},\"type\":\"text\"}]}}}",
55
"headers": {
66
"Notion-Version": "2021-05-13",
77
"Authorization": "***",

fixture/vcr_cassettes/post_create_page_type_page.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"request": {
4-
"body": "{\"childern\":[],\"parent\":{\"page_id\":\"9b4a624d5a18482ab2187e54166edda7\"},\"properties\":{}}",
4+
"body": "{\"children\":[],\"parent\":{\"page_id\":\"9b4a624d5a18482ab2187e54166edda7\"},\"properties\":{}}",
55
"headers": {
66
"Notion-Version": "2021-05-13",
77
"Authorization": "***",

fixture/vcr_cassettes/post_create_page_type_page_error_parent_id.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"request": {
4-
"body": "{\"childern\":[],\"parent\":{\"database_id\":\"9b4a624d5a18482ab2187e54166edda7\"},\"properties\":{\"title\":{\"title\":[{\"text\":{\"content\":\"Create Page Database\"},\"type\":\"text\"}]}}}",
4+
"body": "{\"children\":[],\"parent\":{\"database_id\":\"9b4a624d5a18482ab2187e54166edda7\"},\"properties\":{\"title\":{\"title\":[{\"text\":{\"content\":\"Create Page Database\"},\"type\":\"text\"}]}}}",
55
"headers": {
66
"Notion-Version": "2021-05-13",
77
"Authorization": "***",

lib/thin_notion_api/pages.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ defmodule ThinNotionApi.Pages do
4141
body_params = %{}
4242
|> Properties.set_page_parent(parent_id)
4343
|> Map.put(:properties, properties)
44-
|> Map.put(:childern, children)
44+
|> Map.put(:children, children)
4545

4646
post("pages", body_params)
4747
end
@@ -50,7 +50,7 @@ defmodule ThinNotionApi.Pages do
5050
body_params = %{}
5151
|> Properties.set_database_parent(parent_id)
5252
|> Properties.set_database_properties(properties)
53-
|> Map.put(:childern, children)
53+
|> Map.put(:children, children)
5454

5555
post("pages", body_params)
5656
end

0 commit comments

Comments
 (0)