mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-20 00:18:47 -05:00
Merge pull request #2279 from Br0wnHammer/fix/fe/port-validation
Fix: Port Validation Uptime
This commit is contained in:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user