From d29d300d3b2bdb7aaad1cc6641ea46e41585aa2e Mon Sep 17 00:00:00 2001 From: TJ Silver Date: Wed, 11 Dec 2024 17:06:40 +0000 Subject: [PATCH] fix: log account cloudbuster messages are sent to in PROD --- packages/cloudbuster/src/digests.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/cloudbuster/src/digests.ts b/packages/cloudbuster/src/digests.ts index 0c92d658f..faf31c12d 100644 --- a/packages/cloudbuster/src/digests.ts +++ b/packages/cloudbuster/src/digests.ts @@ -133,8 +133,6 @@ export async function sendDigest( config: Config, digest: Digest, ): Promise { - const target = { Stack: 'testing-alerts' }; - const notifyParams: NotifyParams = { subject: digest.subject, message: digest.message, @@ -150,7 +148,7 @@ export async function sendDigest( if (enableMessaging && stage == 'PROD') { console.log( - `Sending ${digest.accountId} digest to ${JSON.stringify(target, null, 4)}...`, + `Sending ${digest.accountId} digest to ${JSON.stringify(notifyParams.target, null, 4)}...`, ); await anghammaradClient.notify(notifyParams); } else if (enableMessaging) { @@ -160,7 +158,7 @@ export async function sendDigest( }; console.log( - `Sending ${digest.accountId} digest to ${JSON.stringify(target, null, 4)}...`, + `Sending ${digest.accountId} digest to ${JSON.stringify(testNotifyParams.target, null, 4)}...`, ); await anghammaradClient.notify(testNotifyParams);