feat: update return types

This commit is contained in:
Zamitto 2024-07-30 15:15:50 -03:00
parent c38422f635
commit 4dcd97bce8
3 changed files with 6 additions and 6 deletions

View File

@ -4,8 +4,8 @@ import { HydraApi } from "@main/services";
const undoFriendship = async (
_event: Electron.IpcMainInvokeEvent,
userId: string
): Promise<void> => {
return HydraApi.delete(`/profile/friends/${userId}`);
) => {
await HydraApi.delete(`/profile/friends/${userId}`);
};
registerEvent("undoFriendship", undoFriendship);

View File

@ -4,8 +4,8 @@ import { HydraApi } from "@main/services";
const blockUser = async (
_event: Electron.IpcMainInvokeEvent,
userId: string
): Promise<void> => {
return HydraApi.post(`/user/${userId}/block`);
) => {
await HydraApi.post(`/user/${userId}/block`);
};
registerEvent("blockUser", blockUser);

View File

@ -4,8 +4,8 @@ import { HydraApi } from "@main/services";
const unblockUser = async (
_event: Electron.IpcMainInvokeEvent,
userId: string
): Promise<void> => {
return HydraApi.post(`/user/${userId}/unblock`);
) => {
await HydraApi.post(`/user/${userId}/unblock`);
};
registerEvent("unblockUser", unblockUser);