Skip to content

Commit

Permalink
Few final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LJ authored and LJ committed Jul 27, 2024
1 parent 0a8140a commit 7dbd51c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/api_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl racal::reqwest::ApiClient<Authentication> for AuthenticatedVRC {
{
let response = response.error_for_status()?;
let val = response.bytes().await?;
dbg!(std::str::from_utf8(&val)).ok();
//dbg!(std::str::from_utf8(&val)).ok();
Ok(queryable.deserialize(&val)?)
}
}
Expand Down Expand Up @@ -359,7 +359,8 @@ impl UnauthenticatedVRC {
let auth: String = extract_cookie(response.headers(), "auth=")
.ok_or_else(|| serde_json::Error::custom("auth cookie is missing"))?;

let resp = self.handle_response::<LoginResponseOrCurrentUser, Authenticating, crate::query::GetCurrentUser>(queryable, response).await?;
let resp: LoginResponseOrCurrentUser =
self.handle_response(queryable, response).await?;

let resp = match resp {
LoginResponseOrCurrentUser::Login(login_resp) => login_resp,
Expand Down
2 changes: 1 addition & 1 deletion src/model/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ pub struct AccountData {
pub current_avatar_image_url: Url,
/// The current avatar tags or empty string.
#[serde(default)]
pub current_avatar_tags: Vec<serde_json::Value>,
pub current_avatar_tags: serde_json::Value,
/// The avatar's smaller image, for profile picture see the [profile pic
/// override](Self::profile_pic_override)
pub current_avatar_thumbnail_image_url: Url,
Expand Down

0 comments on commit 7dbd51c

Please sign in to comment.