diff --git a/src/api/notion.ts b/src/api/notion.ts index 7392a5f..f3da329 100644 --- a/src/api/notion.ts +++ b/src/api/notion.ts @@ -129,12 +129,11 @@ export const fetchBlocks = async ( return await fetchNotionData({ resource: "syncRecordValues", body: { - recordVersionMap: { - block: blockList.reduce((obj, blockId) => { - obj[blockId] = -1; - return obj; - }, {} as { [key: string]: -1 }), - }, + requests: blockList.map((id) => ({ + id, + table: "block", + version: -1, + })), }, notionToken, });