diff --git a/connectors/src/connectors/notion/temporal/activities.ts b/connectors/src/connectors/notion/temporal/activities.ts index 82d1edc3aac5..ab434214a5b2 100644 --- a/connectors/src/connectors/notion/temporal/activities.ts +++ b/connectors/src/connectors/notion/temporal/activities.ts @@ -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, @@ -1534,7 +1534,7 @@ async function maybeAddParentToResourcesToCheck({ } } -async function resolveResourceParent({ +export async function resolveResourceParent({ parentId, parentType, pageOrDbId,