Skip to content

Commit 6d90d68

Browse files
fix: Update Slack configuration to directly use environment variables
- Modified the Slack configuration to directly assign environment variables for `token` and `channelId` without converting them to strings. This change simplifies the configuration setup for Slack integration, ensuring that the environment variables are used as intended.
1 parent 2bd1d2f commit 6d90d68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workers/main/src/configs/slack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { z } from 'zod';
22

33
export const slackConfig = {
4-
token: String(process.env.SLACK_TOKEN),
5-
channelId: String(process.env.SLACK_FIN_REPORT_CHANNEL_ID),
4+
token: process.env.SLACK_TOKEN,
5+
channelId: process.env.SLACK_FIN_REPORT_CHANNEL_ID,
66
};
77

88
export const slackSchema = z.object({

0 commit comments

Comments
 (0)