Skip to content

Commit

Permalink
add a missing parentId in updateDescendantsParentsInCore (#9683)
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi authored Jan 2, 2025
1 parent 357545f commit 6637829
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions connectors/src/connectors/microsoft/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -860,14 +860,16 @@ async function updateDescendantsParentsInCore({
const files = children.filter((child) => child.nodeType === "file");
const folders = children.filter((child) => child.nodeType === "folder");

const parents = await getParents({
connectorId: folder.connectorId,
internalId: folder.internalId,
startSyncTs,
});
await upsertDataSourceFolder({
dataSourceConfig,
folderId: folder.internalId,
parents: await getParents({
connectorId: folder.connectorId,
internalId: folder.internalId,
startSyncTs,
}),
parents,
parentId: parents[1] || null,
title: folder.name ?? "",
mimeType: "application/vnd.dust.microsoft.folder",
});
Expand Down

0 comments on commit 6637829

Please sign in to comment.