-
Notifications
You must be signed in to change notification settings - Fork 38
feat:slack connector #47
feat:slack connector #47
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indexing and fetching does not seem to be working, code needs minor changes & testing.
for (const channel of slackChannels) { | ||
const conversations = await this.fetchChannelConversations(channel.id,config); | ||
for(const conversation of conversations){ | ||
const thread = await this.fetchThreadForConversation(channel.id,conversation.ts,config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be a bug, .ts does not exist on conversation. Similarly, it's non-existent for the references in this file. Consider changing to conversation.id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey id will not work . Please refer to the following doc https://api.slack.com/methods/conversations.history
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, refer to the other comment on this file, ts
does not exist on the conversation object
id: conversations.ts, | ||
text:conversations.text, | ||
user: conversations.user | ||
})) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are assigning conversations.ts
to id
, not to ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right! Missed that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please create a PR with the change? Thanks for finding the issue
Slack Connector