Skip to content

Commit

Permalink
fix: Correct slack mention syntax (#3793)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Oct 10, 2024
1 parent f8686fc commit 3db8045
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ const FlowStatus = () => {

const subdomainLink = teamDomain && `https://${teamDomain}/${flowSlug}`;

// Currently Silvia
const slackMemberID = "U05KXM9DQ4B";

const sendFlowStatusSlackNotification = async (status: FlowStatus) => {
const skipTeamSlugs = [
"open-digital-planning",
Expand All @@ -75,7 +78,7 @@ const FlowStatus = () => {
online: ":large_green_circle:",
offline: ":no_entry:",
};
const message = `${emoji[status]} *${teamSlug}/${flowSlug}* is now ${status} (@Silvia)`;
const message = `${emoji[status]} *${teamSlug}/${flowSlug}* is now ${status} (<@${slackMemberID}>)`;

return axios.post(
`${import.meta.env.VITE_APP_API_URL}/send-slack-notification`,
Expand Down

0 comments on commit 3db8045

Please sign in to comment.