mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-23 19:01:02 +00:00
10 lines
351 B
TypeScript
10 lines
351 B
TypeScript
import { registerEvent } from "../register-event";
|
|
import { HydraApi } from "@main/services";
|
|
import { FriendRequestSync } from "@types";
|
|
|
|
const syncFriendRequests = async (_event: Electron.IpcMainInvokeEvent) => {
|
|
return HydraApi.get<FriendRequestSync>(`/profile/friend-requests/sync`);
|
|
};
|
|
|
|
registerEvent("syncFriendRequests", syncFriendRequests);
|