From 1cc7fdcf525ec65154b24df19563afc1ad2d4cca Mon Sep 17 00:00:00 2001 From: Henry Fontanier Date: Thu, 7 Mar 2024 18:25:33 +0100 Subject: [PATCH] fix: actually resolve DB parents --- connectors/src/connectors/notion/temporal/activities.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,