add missing render template section to renderAlertTemplate in alerts utils

This commit is contained in:
CHP 2024-07-10 15:19:20 -04:00
parent 3b91ddda27
commit b3469a0ac4

View file

@ -591,6 +591,13 @@ ${value} ${
${targetTemplate}`;
}
// render the template
if (rawTemplateBody) {
registerHelpers(rawTemplateBody);
const compiledTemplate = hb.compile(rawTemplateBody);
return compiledTemplate(view);
}
throw new Error(`Unsupported alert source: ${(alert as any).source}`);
};
// ------------------------------------------------------------