Skip to content

Commit

Permalink
Merge branch 'main' into kelvin-chappell-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-chappell authored Dec 12, 2024
2 parents 2cac6fc + 70b8f77 commit 58dd809
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/cloudbuster/src/digests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ export async function sendDigest(
config: Config,
digest: Digest,
): Promise<void> {
const target = { Stack: 'testing-alerts' };

const notifyParams: NotifyParams = {
subject: digest.subject,
message: digest.message,
Expand All @@ -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) {
Expand All @@ -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);
Expand Down

0 comments on commit 58dd809

Please sign in to comment.