mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-13 03:32:13 +00:00
feat: add catch to api call
This commit is contained in:
parent
98bef62a2f
commit
7a7afef799
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import { HydraApi } from "@main/services/hydra-api";
|
|||
const signOut = async (_event: Electron.IpcMainInvokeEvent): Promise<void> => {
|
||||
await Promise.all([
|
||||
userAuthRepository.delete({ id: 1 }),
|
||||
HydraApi.post("/auth/logout"),
|
||||
HydraApi.post("/auth/logout").catch(),
|
||||
]);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue