From b3a35a91c8bccc944549b989be86d406964b540d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Thu, 10 Oct 2024 10:51:09 +0100 Subject: [PATCH] fix: Correct slack mention syntax --- .../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..2646a8465b 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`,