diff --git a/connectors/src/connectors/slack/temporal/activities.ts b/connectors/src/connectors/slack/temporal/activities.ts index 5ed59ca82401..4c3583496f0c 100644 --- a/connectors/src/connectors/slack/temporal/activities.ts +++ b/connectors/src/connectors/slack/temporal/activities.ts @@ -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", }, @@ -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", },