Skip to content

Commit

Permalink
slack: stop doubling parents in connectors + set parentId (#9361)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Dec 13, 2024
1 parent 4150b0b commit ad13251
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions connectors/src/connectors/slack/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,8 @@ export async function syncNonThreaded(
documentUrl: sourceUrl,
timestampMs: updatedAt,
tags,
parents: [documentId, channelId, internalIdFromSlackChannelId(channelId)],
parentId: internalIdFromSlackChannelId(channelId),
parents: [documentId, internalIdFromSlackChannelId(channelId)],
upsertContext: {
sync_type: isBatchSync ? "batch" : "incremental",
},
Expand Down Expand Up @@ -815,7 +816,8 @@ export async function syncThread(
documentUrl: sourceUrl,
timestampMs: updatedAt,
tags,
parents: [documentId, channelId, internalIdFromSlackChannelId(channelId)],
parentId: internalIdFromSlackChannelId(channelId),
parents: [documentId, internalIdFromSlackChannelId(channelId)],
upsertContext: {
sync_type: isBatchSync ? "batch" : "incremental",
},
Expand Down

0 comments on commit ad13251

Please sign in to comment.