From 75e642cd73a249eadb49442fe96902ff2f8ac2c0 Mon Sep 17 00:00:00 2001 From: GlitchWitch Date: Thu, 28 Dec 2023 12:01:38 -0600 Subject: [PATCH] Remove unused code and comments --- server/api/services/slack.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/server/api/services/slack.js b/server/api/services/slack.js index 6f6c5d13..c06aa5fe 100644 --- a/server/api/services/slack.js +++ b/server/api/services/slack.js @@ -11,7 +11,6 @@ async function sendSlackMessage(messageText) { console.log('Sending to Slack'); - const postData = { blocks: [ { type: 'section', @@ -23,7 +22,6 @@ async function sendSlackMessage(messageText) { }; try { - // Prod path const config = { headers: { 'Content-Type': 'application/json', @@ -39,16 +37,6 @@ async function sendSlackMessage(messageText) { console.error('Error sending to Slack:', error.message); }); - - // Testing in dev environment (Brad) - /* - const response = await axios.post(plankaTestWebhookUrl, postData, { - headers: { - 'Content-Type': 'application/json' - } - }); - */ - console.log('Slack response:', response.data); return response.data; } catch (error) {