mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
rename method
This commit is contained in:
parent
63e74648c4
commit
16f862d389
4 changed files with 6 additions and 6 deletions
|
|
@ -2,11 +2,11 @@ import { userAuthRepository } from "@main/repository";
|
|||
import { registerEvent } from "../register-event";
|
||||
import { HydraApi } from "@main/services/hydra-api";
|
||||
|
||||
const signout = async (_event: Electron.IpcMainInvokeEvent): Promise<void> => {
|
||||
const signOut = async (_event: Electron.IpcMainInvokeEvent): Promise<void> => {
|
||||
await Promise.all([
|
||||
userAuthRepository.delete({ id: 1 }),
|
||||
HydraApi.post("/auth/logout"),
|
||||
]);
|
||||
};
|
||||
|
||||
registerEvent("signout", signout);
|
||||
registerEvent("signOut", signOut);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue