From 1d8d3eb73f2593e0876e041719d9103490fb3b39 Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Sat, 7 Sep 2024 22:10:00 +0200 Subject: [PATCH] server: Fix attribute name --- server/src/infra/graphql/mutation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/infra/graphql/mutation.rs b/server/src/infra/graphql/mutation.rs index cb68d70..b7ca740 100644 --- a/server/src/infra/graphql/mutation.rs +++ b/server/src/infra/graphql/mutation.rs @@ -143,14 +143,14 @@ fn unpack_attributes( .map(Email::from); let display_name = attributes .iter() - .find(|attr| attr.name == "displayName") + .find(|attr| attr.name == "display_name") .cloned() .map(|attr| deserialize_attribute(&schema.get_schema().user_attributes, attr, is_admin)) .transpose()? .map(|attr| attr.value.unwrap::()); let attributes = attributes .into_iter() - .filter(|attr| attr.name != "mail" && attr.name != "displayName") + .filter(|attr| attr.name != "mail" && attr.name != "display_name") .map(|attr| deserialize_attribute(&schema.get_schema().user_attributes, attr, is_admin)) .collect::, _>>()?; Ok(UnpackedAttributes {