Skip to content

Commit

Permalink
Merge pull request #829 from hpcc-systems/yadhap/cluster-creds-monito…
Browse files Browse the repository at this point in the history
…ring

Updated cluster cred monitoring job to use adminEmails from adminEmai…
  • Loading branch information
FancMa01 authored Aug 20, 2024
2 parents 912306d + 01ced75 commit 6fca5ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tombolo/server/jobs/cluster/monitorClusterReachability.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const NotificationQueue = models.notification_queue;
for(let cluster of allClusters){
try{
// Destructure cluster
const { accountMetaData, name: clusterName, metaData: clusterMetaData } = cluster;
const { accountMetaData, name: clusterName, adminEmails } = cluster;

// Cluster payload
const newAccountMetaData = {...accountMetaData, lastMonitored: now};
Expand All @@ -58,7 +58,7 @@ const NotificationQueue = models.notification_queue;
clusterName,
templateName: "hpccPasswordExpiryAlert",
passwordDaysRemaining,
recipients: clusterMetaData?.adminEmails || [],
recipients: adminEmails || [],
notificationId: `PWD_EXPIRY_${now.getTime()}`,
});

Expand Down

0 comments on commit 6fca5ad

Please sign in to comment.