Skip to content

Commit

Permalink
Update slack message on new user
Browse files Browse the repository at this point in the history
  • Loading branch information
mlejva committed Jun 29, 2023
1 parent df5b878 commit 360badb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion supabase/functions/new_feedback/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ const slackClient = new WebClient(SLACK_API_TOKEN)
console.log('Slack client created')

function sendSlackMessage(email: string, feedback: string) {
const message = `:rotating_light: @here *New User Feedback From Dashboard*\n*User*\n${email}\n*Feedback*\n>${feedback}`
const message = `:rotating_light: @here <@here> *New User Feedback From Dashboard*\n*User*\n${email}\n*Feedback*\n>${feedback}`

return slackClient.chat.postMessage({
channel: SLACK_CHANNEL,
text: message,
link_names: true,
})
}

Expand Down

0 comments on commit 360badb

Please sign in to comment.