Returing only internal error spaces.
This commit is contained in:
1 parent
0b9535820f
commit
6d4b3f5174
1 file changed
+1
-3
@@ -653,9 +653,7 @@ class MonitorController {
|
|||||||
const { to } = req.body;
|
const { to } = req.body;
|
||||||
|
|
||||||
if (!to || typeof to !== "string") {
|
if (!to || typeof to !== "string") {
|
||||||
return res
|
return res.error({ error: "A valid recipient email address is required." });
|
||||||
.status(400)
|
|
||||||
.json({ error: "A valid recipient email address is required." });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const subject = "Test Email from Monitoring System";
|
const subject = "Test Email from Monitoring System";
|
||||||
|
|||||||
Reference in new issue
Block a user