chore: update deps

This commit is contained in:
reya
2024-08-18 15:51:34 +07:00
parent 4cb49d44c7
commit beac1a189e
12 changed files with 930 additions and 743 deletions

View File

@@ -88,15 +88,7 @@ async login(account: string, password: string) : Promise<Result<string, string>>
else return { status: "error", error: e as any };
}
},
async getCurrentProfile() : Promise<Result<string, string>> {
try {
return { status: "ok", data: await TAURI_INVOKE("get_current_profile") };
} catch (e) {
if(e instanceof Error) throw e;
else return { status: "error", error: e as any };
}
},
async getProfile(id: string) : Promise<Result<string, string>> {
async getProfile(id: string | null) : Promise<Result<string, string>> {
try {
return { status: "ok", data: await TAURI_INVOKE("get_profile", { id }) };
} catch (e) {
@@ -184,7 +176,7 @@ async loadWallet() : Promise<Result<string, string>> {
else return { status: "error", error: e as any };
}
},
async removeWallet() : Promise<Result<null, null>> {
async removeWallet() : Promise<Result<null, string>> {
try {
return { status: "ok", data: await TAURI_INVOKE("remove_wallet") };
} catch (e) {