From 22ffa779668afdae93cfaf7750338b2fd7b396a0 Mon Sep 17 00:00:00 2001 From: GlitchWitch Date: Sat, 23 Dec 2023 10:48:50 -0600 Subject: [PATCH] Replace plankaProdUrl with one set by environment. Remove hardcoded channel and unused variables. --- server/api/services/custom.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/server/api/services/custom.js b/server/api/services/custom.js index 3e2dd9b9..6f6c5d13 100644 --- a/server/api/services/custom.js +++ b/server/api/services/custom.js @@ -1,11 +1,8 @@ const axios = require('axios'); const slackPostUrl = 'https://slack.com/api/chat.postMessage'; -const channelId = 'C06B6F4R9RT'; - -const plankaProdUrl = 'https://kanban.glitchsecure.com'; -const plankaTestUrl = 'http://localhost:3000'; -const plankaTestWebhookUrl = ''; +const channelId = process.env.SLACK_CHANNEL_ID; const slackAPIToken = process.env.SLACK_BOT_TOKEN; +const plankaProdUrl = process.env.BASE_URL; async function sendSlackMessage(messageText) { if (!slackAPIToken) {