Skip to content

Commit

Permalink
fix: Correct slack mention syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Oct 10, 2024
1 parent 2ff47d5 commit b3a35a9
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 b3a35a9

Please sign in to comment.