Skip to content

Commit

Permalink
enh: use upsert in cache blocks (#2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanierh authored Oct 24, 2023
1 parent 91a6d1a commit 81c1b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectors/src/connectors/notion/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ export async function cacheBlockChildren({
);
await Promise.all(
parsedBlocks.map((block, i) =>
NotionConnectorBlockCacheEntry.create({
NotionConnectorBlockCacheEntry.upsert({
notionPageId: pageId,
notionBlockId: block.id,
blockType: block.type,
Expand Down

0 comments on commit 81c1b7c

Please sign in to comment.