app: make a graphql argument required

This commit is contained in:
Valentin Tolmer 2021-08-30 09:49:13 +02:00 committed by nitnelave
parent 459f1eba19
commit 40ba65dca7
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
query GetUserDetails($id: String) {
query GetUserDetails($id: String!) {
user(id: $id) {
id
email

View File

@ -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",