/// Save edits to a user's profile, returning their user ID if the user was found.
Save edits to a user's profile, returning their user ID if the user was found.
Save edits to a user ' s profile returning their user ID if the user was found .
pub async fn execute(
        user_id: uuid,
        first_name: String,
        last_name: String,
        cohort: Option<i64>,
        role: UserRole,
    ) -> Result<Option<uuid>, TelescopeError> {
        send_query::<Self>(save_profile_edits::Variables {
            user_id,
            fname: first_name,
            lname: last_name,
            cohort,
            role,
        })
        .await
        .map(|response| response.update_users_by_pk.map(|obj| obj.id))
    }
pub async fn execute ( user_id : uuid , first_name : String , last_name : String , cohort : Option < i64 > , role : UserRole , ) -> Result < Option < uuid > , TelescopeError > { send_query :: < Self > ( save_profile_edits :: Variables { user_id , fname : first_name , lname : last_name , cohort , role , } ) . await . map ( | response | response . update_users_by_pk . map ( | obj | obj . id ) ) }
Save edits to a user's profile, returning their user ID if the user was found.
Save edits to a user ' s profile returning their user ID if the user was found .
user_id
uuid
first_name
String
last_name
String
cohort
Option<i64>
role
UserRole