From 3db80453420df2ca4b6efd6809c766854bf1994d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Thu, 10 Oct 2024 11:20:44 +0100 Subject: [PATCH] fix: Correct slack mention syntax (#3793) --- .../components/Settings/ServiceSettings/FlowStatus/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings/FlowStatus/index.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings/FlowStatus/index.tsx index 40a2afaef7..a7b2e5dc45 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings/FlowStatus/index.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings/FlowStatus/index.tsx @@ -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", @@ -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`,