From 994a78f4d6f6ad0a049bfa1f4967c62cec4f156c Mon Sep 17 00:00:00 2001 From: Stanislas Polu Date: Thu, 30 Nov 2023 09:54:38 +0100 Subject: [PATCH] log slack thread (#2716) --- .../src/connectors/slack/temporal/activities.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/connectors/src/connectors/slack/temporal/activities.ts b/connectors/src/connectors/slack/temporal/activities.ts index 013a09339686..8d62fcfe906d 100644 --- a/connectors/src/connectors/slack/temporal/activities.ts +++ b/connectors/src/connectors/slack/temporal/activities.ts @@ -566,16 +566,31 @@ export async function syncThread( } } while (next_cursor); + const documentId = `slack-${channelId}-thread-${threadTs}`; + + if (documentId === "slack-C01LV3NED08-thread-1701302546.665219") { + console.log( + "slack-C01LV3NED08-thread-1701302546.665219 allMessages-unfiltered", + allMessages + ); + } + const botUserId = await getBotUserIdMemoized(slackClient); allMessages = allMessages.filter((m) => m.user !== botUserId); + if (documentId === "slack-C01LV3NED08-thread-1701302546.665219") { + console.log( + "slack-C01LV3NED08-thread-1701302546.665219 allMessages-filtered", + allMessages + ); + } + const text = await formatMessagesForUpsert( channelId, allMessages, connectorId, slackClient ); - const documentId = `slack-${channelId}-thread-${threadTs}`; const firstMessage = allMessages[0]; let sourceUrl: string | undefined = undefined;