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 ( const undoFriendship = async (
_event: Electron.IpcMainInvokeEvent, _event: Electron.IpcMainInvokeEvent,
userId: string userId: string
): Promise<void> => { ) => {
return HydraApi.delete(`/profile/friends/${userId}`); await HydraApi.delete(`/profile/friends/${userId}`);
}; };
registerEvent("undoFriendship", undoFriendship); registerEvent("undoFriendship", undoFriendship);

View File

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

View File

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