From 0f53b478c4ec03d5d07e4addc7abe4faf87ae4e1 Mon Sep 17 00:00:00 2001 From: janniks Date: Sat, 30 Oct 2021 18:58:51 +0200 Subject: [PATCH] Add experimental fix --- src/api/notion.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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, });