mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-26 19:36:29 +03:00
Chore: Remove redundant assign
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
97d38ee1a8
commit
c9d6e576ab
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue