Skip to content

Commit

Permalink
refactor: use user_id from slack.auth.test 🔒 (colorstackorg#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiAbdou authored and iperalta7 committed Sep 25, 2024
1 parent 88035fc commit c7aa91a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/modules/slack/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,14 +396,14 @@ export async function answerPublicQuestion({
return success({});
}

const { team_id } = await slack.auth.test();
const { team_id, user_id } = await slack.auth.test();

const message =
'I found some threads in our workspace that _may_ be relevant to your question! 🧵' +
'\n\n' +
threads.join('\n') +
'\n\n' +
`_I'm a ColorStack AI assistant! DM me a question <slack://user?team=${team_id}&id=U04TYGYMKQE|*here*> and I'll answer it using the full context of our Slack workspace!_`;
`_I'm a ColorStack AI assistant! DM me a question <slack://user?team=${team_id}&id=${user_id}|*here*> and I'll answer it using the full context of our Slack workspace!_`;

job('notification.slack.send', {
channel: channelId,
Expand Down

0 comments on commit c7aa91a

Please sign in to comment.