feat: allow templating in the Signal notificaiton provider (#6989)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Karthikeya chanda
2026-02-19 20:30:49 +01:00
committed by GitHub
co-authored by autofix-ci[bot] Frank Elsinga
parent c90a7f30e1
commit 019b4b7503
3 changed files with 53 additions and 1 deletions
+7 -1
View File
@@ -11,8 +11,14 @@ class Signal extends NotificationProvider {
const okMsg = "Sent Successfully.";
try {
let message = msg;
if (notification.signalUseTemplate) {
message = await this.renderTemplate(notification.signalTemplate, msg, monitorJSON, heartbeatJSON);
}
let data = {
message: msg,
message,
number: notification.signalNumber,
recipients: notification.signalRecipients.replace(/\s/g, "").split(","),
};