From 7aaf803dc0dec4355549874fa18b49bbde917ba8 Mon Sep 17 00:00:00 2001 From: sticks Date: Tue, 3 Dec 2024 20:03:01 -0600 Subject: [PATCH] remove main wallet from parsed response --- src-tauri/src/handlers/fansly/mod.rs | 4 +++- src-tauri/src/structs/mod.rs | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/handlers/fansly/mod.rs b/src-tauri/src/handlers/fansly/mod.rs index b308359..87eced5 100644 --- a/src-tauri/src/handlers/fansly/mod.rs +++ b/src-tauri/src/handlers/fansly/mod.rs @@ -81,7 +81,9 @@ impl Fansly { println!("[sync::process::get_profile] Got successful response from API."); } - let profile: FanslyBaseResponse = response.json().await?; + let profile = response + .json::>() + .await?; Ok(profile) } diff --git a/src-tauri/src/structs/mod.rs b/src-tauri/src/structs/mod.rs index fa37034..5ebd920 100644 --- a/src-tauri/src/structs/mod.rs +++ b/src-tauri/src/structs/mod.rs @@ -105,7 +105,6 @@ pub struct Account { pub status_id: i64, pub last_seen_at: i64, pub post_likes: i64, - pub main_wallet: MainWallet, pub streaming: Streaming, pub account_media_likes: i64, pub earnings_wallet: EarningsWallet,