From e4c5440ec28ab9e12f26f9e836a6a7d0bffc2c28 Mon Sep 17 00:00:00 2001 From: silverpill Date: Wed, 20 Apr 2022 14:06:01 +0000 Subject: [PATCH] Increase max number of extra profile fields to 20 --- src/models/profiles/validators.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/profiles/validators.rs b/src/models/profiles/validators.rs index cf73826..476c7e2 100644 --- a/src/models/profiles/validators.rs +++ b/src/models/profiles/validators.rs @@ -56,8 +56,8 @@ pub fn clean_extra_fields(extra_fields: &[ExtraField]) }) .filter(|field| !field.name.is_empty()) .collect(); - if cleaned_extra_fields.len() >= 10 { - return Err(ValidationError("at most 10 fields are allowed")); + if cleaned_extra_fields.len() > 20 { + return Err(ValidationError("at most 20 fields are allowed")); }; Ok(cleaned_extra_fields) }