mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-08 00:24:00 +00:00
adjust email template for alerts
This commit is contained in:
@@ -36,13 +36,17 @@ export async function sendAlertEmail(
|
||||
const from = config.getNoReplyEmail();
|
||||
const subject = buildSubject(context);
|
||||
|
||||
const baseUrl = config.getRawConfig().app.dashboard_url!.replace(/\/$/, "");
|
||||
const dashboardLink = `${baseUrl}/${context.orgId}/settings`;
|
||||
|
||||
for (const to of recipients) {
|
||||
try {
|
||||
await sendEmail(
|
||||
AlertNotification({
|
||||
eventType: context.eventType,
|
||||
orgId: context.orgId,
|
||||
data: context.data
|
||||
data: context.data,
|
||||
dashboardLink
|
||||
}),
|
||||
{
|
||||
from,
|
||||
|
||||
Reference in New Issue
Block a user