Skip to content

Commit 311484c

Browse files
committed
refactor: rename web variable to slackClient
1 parent c45139d commit 311484c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

functions/billing/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const {WebClient} = require('@slack/web-api');
2929
const BOT_ACCESS_TOKEN =
3030
process.env.BOT_ACCESS_TOKEN || 'xxxx-111111111111-abcdefghidklmnopq';
3131
const CHANNEL = process.env.SLACK_CHANNEL || 'general';
32-
const web = new WebClient(BOT_ACCESS_TOKEN);
32+
const slackClient = new WebClient(BOT_ACCESS_TOKEN);
3333

3434
exports.notifySlack = async pubsubEvent => {
3535
const pubsubAttrs = pubsubEvent.attributes;
@@ -38,7 +38,7 @@ exports.notifySlack = async pubsubEvent => {
3838
pubsubAttrs
3939
)}, ${pubsubData}`;
4040

41-
await web.chat.postMessage({
41+
await slackClient.chat.postMessage({
4242
channel: CHANNEL,
4343
text: budgetNotificationText,
4444
});

0 commit comments

Comments
 (0)