Skip to content

Commit c3556b0

Browse files
author
Sergei Orlov
committed
🐛 Remove redundant query parameter in Notion requests
1 parent df8c4d4 commit c3556b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const getPageContent = async ({ page, notionVersion, token }, reporter) => {
4242

4343
const getPages = async ({ token, databaseId, notionVersion = "2021-05-13" }, reporter) => {
4444
try {
45-
const db = await fetch(`https://api.notion.com/v1/databases/${databaseId}/query?page_size=100`, {
45+
const db = await fetch(`https://api.notion.com/v1/databases/${databaseId}/query`, {
4646
method: "POST",
4747
body: JSON.stringify({
4848
page_size: 100,

0 commit comments

Comments
 (0)