From c2eeed81217bc81f4f2057fd81ad0666f4265e6b Mon Sep 17 00:00:00 2001 From: Owaise Imdad Date: Tue, 6 May 2025 00:37:01 +0530 Subject: [PATCH] Finall touch on string msgs. --- server/controllers/monitorController.js | 2 +- server/locales/en.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/controllers/monitorController.js b/server/controllers/monitorController.js index c917d1269..5d6a4665e 100755 --- a/server/controllers/monitorController.js +++ b/server/controllers/monitorController.js @@ -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"; diff --git a/server/locales/en.json b/server/locales/en.json index b53c6d406..5496b0e74 100755 --- a/server/locales/en.json +++ b/server/locales/en.json @@ -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." }