Finall touch on string msgs.

This commit is contained in:
Owaise Imdad
2025-05-06 00:37:01 +05:30
parent 87573945f2
commit c2eeed8121
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -653,7 +653,7 @@ class MonitorController {
const { to } = req.body;
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";
+2 -1
View File
@@ -159,5 +159,6 @@
"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",
"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."
}