|
|
@ -31,13 +31,12 @@ class Webhook extends NotificationProvider {
|
|
|
|
const tpl = engine.parse(notification.webhookCustomBody);
|
|
|
|
const tpl = engine.parse(notification.webhookCustomBody);
|
|
|
|
|
|
|
|
|
|
|
|
// Insert templated values into Body
|
|
|
|
// Insert templated values into Body
|
|
|
|
const parsedBody = await engine.render(tpl,
|
|
|
|
data = await engine.render(tpl,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
msg,
|
|
|
|
msg,
|
|
|
|
heartbeatJSON,
|
|
|
|
heartbeatJSON,
|
|
|
|
monitorJSON
|
|
|
|
monitorJSON
|
|
|
|
});
|
|
|
|
});
|
|
|
|
data = parsedBody;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (notification.webhookAdditionalHeaders) {
|
|
|
|
if (notification.webhookAdditionalHeaders) {
|
|
|
|