diff --git a/src/graphql.rs b/src/graphql.rs index b462261..0fb2516 100644 --- a/src/graphql.rs +++ b/src/graphql.rs @@ -397,7 +397,7 @@ pub struct Mutation; #[graphql_object(context = Context)] impl Mutation { - async fn createUser(context: &Context, new_user: NewUser) -> FieldResult { + async fn createUser(context: &Context, new_user: NewUser) -> FieldResult { let user: User = new_user.into(); if sqlx::query( @@ -475,7 +475,7 @@ impl Mutation { external_servers_privacy_preferences.info_server_limit.iter().map(|u| u.to_string()).collect::>().join(","), ).as_str()).execute(&context.db).await?; - Ok(format!("User @{} created", user.user_name)) + Ok(ID::new(id_to_uuid(&user.id)?.to_simple().to_string())) } }