- update based review

This commit is contained in:
Shemy Gan committed 2024-10-22 09:31:00 -04:00
1 parent 8ec2f2f16b
commit 0005b195b1
1 file changed
+2 -2
+2 -2
View File
@@ -152,8 +152,8 @@ const advancedSettingsValidation = joi.object({
"string.empty": "Redis host is required",
}),
redisPort: joi.string().allow('').custom((value, helpers) => {
if(value && isNaN(parseInt(value))){
return helpers.message("Redit port must be a number")
if(value && Number.isNaN(parseInt(value))){
return helpers.message("Redis port must be a number")
}
return value
}),