From ad132510ffc40ed69525a1f926343441fd751872 Mon Sep 17 00:00:00 2001 From: Stanislas Polu Date: Fri, 13 Dec 2024 14:36:34 +0100 Subject: [PATCH] slack: stop doubling parents in connectors + set parentId (#9361) --- connectors/src/connectors/slack/temporal/activities.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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", },