returing msg instead of error.

This commit is contained in:
Owaise Imdad
2025-05-06 00:33:31 +05:30
parent f8233aef08
commit 87573945f2

View File

@@ -653,7 +653,7 @@ class MonitorController {
const { to } = req.body;
if (!to || typeof to !== "string") {
return res.error({ error: "A valid recipient email address is required." });
return res.error({ msg: "A valid recipient email address is required." });
}
const subject = "Test Email from Monitoring System";