chore: update deps

This commit is contained in:
reya
2024-08-03 14:05:57 +07:00
parent 4f63e3e13f
commit b075e374b1
3 changed files with 124 additions and 124 deletions

View File

@@ -4,9 +4,9 @@
/** user-defined commands **/
export const commands = {
async login(id: string, bunker: string | null) : Promise<Result<string, string>> {
async login(id: string) : Promise<Result<string, string>> {
try {
return { status: "ok", data: await TAURI_INVOKE("login", { id, bunker }) };
return { status: "ok", data: await TAURI_INVOKE("login", { id }) };
} catch (e) {
if(e instanceof Error) throw e;
else return { status: "error", error: e as any };