feat: add catch to api call

This commit is contained in:
Zamitto 2024-06-20 20:07:17 -03:00
parent 98bef62a2f
commit 7a7afef799

View file

@ -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(),
]);
};