Skip to content

Commit

Permalink
Merge pull request #65 from janniks/experimental
Browse files Browse the repository at this point in the history
Add experimental `syncRecordValues` fix
  • Loading branch information
tobiaslins authored Oct 31, 2021
2 parents 6a1af2e + 0f53b47 commit bfadc37
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/api/notion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,11 @@ export const fetchBlocks = async (
return await fetchNotionData<LoadPageChunkData>({
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,
});
Expand Down

0 comments on commit bfadc37

Please sign in to comment.