mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	app: make a graphql argument required
This commit is contained in:
		
							parent
							
								
									96c93fd3c1
								
							
						
					
					
						commit
						f88373968e
					
				@ -1,4 +1,4 @@
 | 
			
		||||
query GetUserDetails($id: String) {
 | 
			
		||||
query GetUserDetails($id: String!) {
 | 
			
		||||
  user(id: $id) {
 | 
			
		||||
    id
 | 
			
		||||
    email
 | 
			
		||||
 | 
			
		||||
@ -36,7 +36,7 @@ impl UserDetails {
 | 
			
		||||
    fn get_user_details(&mut self) {
 | 
			
		||||
        self._task = HostService::graphql_query::<GetUserDetails>(
 | 
			
		||||
            get_user_details::Variables {
 | 
			
		||||
                id: Some(self.username.clone()),
 | 
			
		||||
                id: self.username.clone(),
 | 
			
		||||
            },
 | 
			
		||||
            self.link.callback(Msg::UserDetailsResponse),
 | 
			
		||||
            "Error trying to fetch user details",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user