- update based review
This commit is contained in:
1 parent
8ec2f2f16b
commit
0005b195b1
1 file changed
+2
-2
@@ -152,8 +152,8 @@ const advancedSettingsValidation = joi.object({
|
|||||||
"string.empty": "Redis host is required",
|
"string.empty": "Redis host is required",
|
||||||
}),
|
}),
|
||||||
redisPort: joi.string().allow('').custom((value, helpers) => {
|
redisPort: joi.string().allow('').custom((value, helpers) => {
|
||||||
if(value && isNaN(parseInt(value))){
|
if(value && Number.isNaN(parseInt(value))){
|
||||||
return helpers.message("Redit port must be a number")
|
return helpers.message("Redis port must be a number")
|
||||||
}
|
}
|
||||||
return value
|
return value
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in new issue
Block a user