mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 04:25:46 +00:00
disabled email notifications for gateway and relay health check, keeping
the instance relay email for instance admins
This commit is contained in:
@@ -931,15 +931,17 @@ export const gatewayV2ServiceFactory = ({
|
|||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
|
|
||||||
await smtpService.sendMail({
|
// Temporarily disabled email notifications due to excessive noise. Will be revised later
|
||||||
recipients: admins.map((admin) => admin.user.email).filter((v): v is string => !!v),
|
//
|
||||||
subjectLine: "Gateway Health Alert",
|
// await smtpService.sendMail({
|
||||||
substitutions: {
|
// recipients: admins.map((admin) => admin.user.email).filter((v): v is string => !!v),
|
||||||
type: "gateway",
|
// subjectLine: "Gateway Health Alert",
|
||||||
names: gatewayNames
|
// substitutions: {
|
||||||
},
|
// type: "gateway",
|
||||||
template: SmtpTemplates.HealthAlert
|
// names: gatewayNames
|
||||||
});
|
// },
|
||||||
|
// template: SmtpTemplates.HealthAlert
|
||||||
|
// });
|
||||||
|
|
||||||
await Promise.all(gateways.map((gw) => gatewayV2DAL.updateById(gw.id, { healthAlertedAt: new Date() })));
|
await Promise.all(gateways.map((gw) => gatewayV2DAL.updateById(gw.id, { healthAlertedAt: new Date() })));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -1268,15 +1268,17 @@ export const relayServiceFactory = ({
|
|||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
|
|
||||||
await smtpService.sendMail({
|
// Temporarily disabled email notifications due to excessive noise. Will be revised later
|
||||||
recipients: admins.map((admin) => admin.user.email).filter((v): v is string => !!v),
|
//
|
||||||
subjectLine: "Relay Health Alert",
|
// await smtpService.sendMail({
|
||||||
substitutions: {
|
// recipients: admins.map((admin) => admin.user.email).filter((v): v is string => !!v),
|
||||||
type: "relay",
|
// subjectLine: "Relay Health Alert",
|
||||||
names: relayNames
|
// substitutions: {
|
||||||
},
|
// type: "relay",
|
||||||
template: SmtpTemplates.HealthAlert
|
// names: relayNames
|
||||||
});
|
// },
|
||||||
|
// template: SmtpTemplates.HealthAlert
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
await Promise.all(relays.map((r) => relayDAL.updateById(r.id, { healthAlertedAt: new Date() })));
|
await Promise.all(relays.map((r) => relayDAL.updateById(r.id, { healthAlertedAt: new Date() })));
|
||||||
|
|||||||
Reference in New Issue
Block a user