diff --git a/src/main/events/profile/undo-friendship.ts b/src/main/events/profile/undo-friendship.ts index d6f858f1..371bc5cc 100644 --- a/src/main/events/profile/undo-friendship.ts +++ b/src/main/events/profile/undo-friendship.ts @@ -4,8 +4,8 @@ import { HydraApi } from "@main/services"; const undoFriendship = async ( _event: Electron.IpcMainInvokeEvent, userId: string -): Promise => { - return HydraApi.delete(`/profile/friends/${userId}`); +) => { + await HydraApi.delete(`/profile/friends/${userId}`); }; registerEvent("undoFriendship", undoFriendship); diff --git a/src/main/events/user/block-user.ts b/src/main/events/user/block-user.ts index 041b6530..8003f478 100644 --- a/src/main/events/user/block-user.ts +++ b/src/main/events/user/block-user.ts @@ -4,8 +4,8 @@ import { HydraApi } from "@main/services"; const blockUser = async ( _event: Electron.IpcMainInvokeEvent, userId: string -): Promise => { - return HydraApi.post(`/user/${userId}/block`); +) => { + await HydraApi.post(`/user/${userId}/block`); }; registerEvent("blockUser", blockUser); diff --git a/src/main/events/user/unblock-user.ts b/src/main/events/user/unblock-user.ts index 57cdb236..ac678dbd 100644 --- a/src/main/events/user/unblock-user.ts +++ b/src/main/events/user/unblock-user.ts @@ -4,8 +4,8 @@ import { HydraApi } from "@main/services"; const unblockUser = async ( _event: Electron.IpcMainInvokeEvent, userId: string -): Promise => { - return HydraApi.post(`/user/${userId}/unblock`); +) => { + await HydraApi.post(`/user/${userId}/unblock`); }; registerEvent("unblockUser", unblockUser);