Skip to content

Commit

Permalink
Merge pull request #58 from HSLdevcom/update-slack-integration
Browse files Browse the repository at this point in the history
Update slack channel names
  • Loading branch information
vesameskanen authored Sep 3, 2020
2 parents 4b2216a + fbd4b2e commit 787ab1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ const { IncomingWebhook } = require('@slack/client')
const url = process.env.SLACK_WEBHOOK_URL || null
var webhook
if (process.env.ENVIRONMENT_TYPE === 'DEV') {
webhook = url !== null ? new IncomingWebhook(url, { username: 'Configuration checker', channel: 'dev-monitoring' }) : null
webhook = url !== null ? new IncomingWebhook(url, { username: 'Configuration checker', channel: 'topic-dev-monitoring' }) : null
} else {
webhook = url !== null ? new IncomingWebhook(url, { username: 'Configuration checker', channel: 'monitoring' }) : null
webhook = url !== null ? new IncomingWebhook(url, { username: 'Configuration checker', channel: 'topic-monitoring' }) : null
}

const postSlackMessage = (message) => {
Expand Down

0 comments on commit 787ab1d

Please sign in to comment.