Skip to content

Commit b2edac0

Browse files
author
Sergei Orlov
committed
🐛 Remove redundant argument
1 parent d871c05 commit b2edac0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/notion-api/get-blocks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fetch = require("node-fetch")
22
const { errorMessage } = require("../error-message")
33

4-
exports.getBlocks = async ({ id, block, notionVersion, token }, reporter) => {
4+
exports.getBlocks = async ({ id, notionVersion, token }, reporter) => {
55
let hasMore = true
66
let blockContent = []
77
let startCursor = ""
@@ -25,7 +25,7 @@ exports.getBlocks = async ({ id, block, notionVersion, token }, reporter) => {
2525
for (let childBlock of result.results) {
2626
if (childBlock.has_children) {
2727
childBlock.children = await this.getBlocks(
28-
{ id: childBlock.id, block: childBlock, notionVersion, token },
28+
{ id: childBlock.id, notionVersion, token },
2929
reporter,
3030
)
3131
}

0 commit comments

Comments
 (0)