Skip to content

Commit

Permalink
fix: actually resolve DB parents (#4207)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Fontanier <[email protected]>
  • Loading branch information
fontanierh and Henry Fontanier authored Mar 7, 2024
1 parent 9981900 commit 676b0ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connectors/src/connectors/notion/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ export async function upsertDatabaseInConnectorsDb(
connectorId,
notionDatabaseId: databaseId,
runTimestamp,
parentType: parsedDb ? parsedDb.parentType : null,
parentId: parsedDb ? parsedDb.parentId : null,
parentType: parentType ?? null,
parentId: parentId ?? null,
title: parsedDb ? parsedDb.title : null,
notionUrl: parsedDb ? parsedDb.url : null,
lastCreatedOrMovedRunTs: createdOrMoved ? runTimestamp : undefined,
Expand Down Expand Up @@ -1534,7 +1534,7 @@ async function maybeAddParentToResourcesToCheck({
}
}

async function resolveResourceParent({
export async function resolveResourceParent({
parentId,
parentType,
pageOrDbId,
Expand Down

0 comments on commit 676b0ec

Please sign in to comment.