rename username parameter to userId

This commit is contained in:
Zamitto 2024-06-16 19:51:09 -03:00
parent 05cb66f2a4
commit d048d562a3
6 changed files with 9 additions and 9 deletions

View file

@ -7,10 +7,10 @@ import { getSteamAppAsset } from "@main/helpers";
const getUser = async (
_event: Electron.IpcMainInvokeEvent,
username: string
userId: string
): Promise<UserProfile | null> => {
try {
const response = await HydraApi.get(`/user/${username}`);
const response = await HydraApi.get(`/user/${userId}`);
const profile = response.data;
const recentGames = await Promise.all(