Fix error messages, auth routes, and remove category unique constraint (#293)

* Fix error messages, auth routes, and remove category unique constraint

* Run prepare

* Remove debug secrets

* Fix team member editing
This commit is contained in:
Geometrically authored and GitHub committed 2022-02-10 10:56:45 -07:00
1 parent eb4375258e
commit e576a58ead
8 files changed
+37 -31

No files matched your search

+2 -2
View File
@@ -21,10 +21,10 @@ pub fn validation_errors_to_string(errors: ValidationErrors, adder: Option<Strin
validation_errors_to_string(*errors.clone(), Some(format!("of item {}", field)))
}
ValidationErrorsKind::List(list) => {
if let Some(errors) = list.get(&0) {
if let Some((index, errors)) = list.iter().next() {
output.push_str(&*validation_errors_to_string(
*errors.clone(),
Some(format!("of list {} with index 0", field)),
Some(format!("of list {} with index {}", index, field)),
));
}