Finall touch on string msgs.
This commit is contained in:
1 parent
87573945f2
commit
c2eeed8121
2 files changed
+3
-2
No files matched your search
@@ -653,7 +653,7 @@ class MonitorController {
|
|||||||
const { to } = req.body;
|
const { to } = req.body;
|
||||||
|
|
||||||
if (!to || typeof to !== "string") {
|
if (!to || typeof to !== "string") {
|
||||||
return res.error({ msg: "A valid recipient email address is required." });
|
return res.error({ msg: this.stringService.errorForValidEmailAddress });
|
||||||
}
|
}
|
||||||
|
|
||||||
const subject = "Test Email from Monitoring System";
|
const subject = "Test Email from Monitoring System";
|
||||||
|
|||||||
@@ -159,5 +159,6 @@
|
|||||||
"testNotificationFailed": "Failed to send test notification",
|
"testNotificationFailed": "Failed to send test notification",
|
||||||
"monitorUpAlert": "Uptime Alert: One of your monitors is back online.\n📌 Monitor: {monitorName}\n📅 Time: {time}\n⚠️ Status: UP\n📟 Status Code: {code}\n\u200B\n",
|
"monitorUpAlert": "Uptime Alert: One of your monitors is back online.\n📌 Monitor: {monitorName}\n📅 Time: {time}\n⚠️ Status: UP\n📟 Status Code: {code}\n\u200B\n",
|
||||||
"monitorDownAlert": "Downtime Alert: One of your monitors went offline.\n📌 Monitor: {monitorName}\n📅 Time: {time}\n⚠️ Status: DOWN\n📟 Status Code: {code}\n\u200B\n",
|
"monitorDownAlert": "Downtime Alert: One of your monitors went offline.\n📌 Monitor: {monitorName}\n📅 Time: {time}\n⚠️ Status: DOWN\n📟 Status Code: {code}\n\u200B\n",
|
||||||
"sendTestEmail": "Test email sent successfully"
|
"sendTestEmail": "Test email sent successfully",
|
||||||
|
"errorForValidEmailAddress": "A valid recipient email address is required."
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user