- update number validation

This commit is contained in:
Shemy Gan committed 2024-10-24 14:13:07 -04:00
1 parent 5c45d934a6
commit fd261d3eb1
1 file changed
+2 -4
+2 -4
View File
@@ -138,10 +138,8 @@ const advancedSettingsValidation = joi.object({
systemEmailPort: joi.string().allow(""), systemEmailPort: joi.string().allow(""),
systemEmailAddress: joi.string().allow(""), systemEmailAddress: joi.string().allow(""),
systemEmailPassword: joi.string().allow(""), systemEmailPassword: joi.string().allow(""),
jwtTTLNum: joi jwtTTLNum: joi.number().messages({
.number() "number.base": "JWT TTL is required.",
.messages({
"any.required": "JWT TTL is required.",
}), }),
jwtTTLUnits: joi jwtTTLUnits: joi
.string() .string()