Fix: Port Validation Uptime

This commit is contained in:
Br0wnHammer committed 2025-05-15 02:38:26 +05:30
1 parent 8ffaaea28d
commit 3c48eacc98
1 file changed
+1 -1
+1 -1
View File
@@ -171,7 +171,7 @@ const monitorValidation = joi.object({
.max(65535)
.when("type", {
is: "port",
then: joi.required().messages({
then: joi.number().messages({
"number.base": "Port must be a number.",
"number.min": "Port must be at least 1.",
"number.max": "Port must be at most 65535.",