From 86c154fb3f8e061b2d159cdbfd093fa6f5a69162 Mon Sep 17 00:00:00 2001 From: beckerinj Date: Tue, 10 May 2022 13:50:20 -0400 Subject: [PATCH] fix --- core/src/plugins/slackNotifier.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/plugins/slackNotifier.ts b/core/src/plugins/slackNotifier.ts index 467c5c141..e3a1e1be1 100644 --- a/core/src/plugins/slackNotifier.ts +++ b/core/src/plugins/slackNotifier.ts @@ -6,7 +6,7 @@ import { DISK_USAGE_NOTIFY_LIMIT, MEM_USAGE_NOTIFY_LIMIT, SERVER_STATS_INTERVAL, - SLACK_TOKEN, + SECRETS, } from "../config"; import { getPeripherySystemStats } from "../util/periphery/server"; import { serverStatusPeriphery } from "../util/periphery/status"; @@ -67,7 +67,7 @@ const slackNotifier = fp((app: FastifyInstance, _: {}, done: () => void) => { }); }; - if (SLACK_TOKEN) { + if (SECRETS.SLACK_TOKEN) { // only do this if slack token is provided setInterval(interval, SERVER_STATS_INTERVAL); }