fix: cannot remove bilibili account

This commit is contained in:
Xinrea
2025-10-25 13:48:59 +08:00
parent 8ca2934e8d
commit b7c9d12e41
4 changed files with 4 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "bili-shadowreplay",
"private": true,
"version": "2.15.0",
"version": "2.15.1",
"type": "module",
"scripts": {
"dev": "vite",

2
src-tauri/Cargo.lock generated
View File

@@ -541,7 +541,7 @@ checksum = "55248b47b0caf0546f7988906588779981c43bb1bc9d0c44087278f80cdb44ba"
[[package]]
name = "bili-shadowreplay"
version = "2.15.0"
version = "2.15.1"
dependencies = [
"async-ffmpeg-sidecar 0.0.1",
"async-std",

View File

@@ -4,7 +4,7 @@ resolver = "2"
[package]
name = "bili-shadowreplay"
version = "2.15.0"
version = "2.15.1"
description = "BiliBili ShadowReplay"
authors = ["Xinrea"]
license = ""

View File

@@ -114,10 +114,7 @@ pub async fn remove_account(
if platform == "bilibili" {
let account = state.db.get_account(&platform, uid).await?;
let client = reqwest::Client::new();
return match bilibili::api::logout(&client, &account.to_account()).await {
Ok(()) => Ok(()),
Err(e) => Err(e.to_string()),
};
let _ = bilibili::api::logout(&client, &account.to_account()).await;
}
Ok(state.db.remove_account(&platform, uid).await?)
}