feat: use new endpoint to get compared achievements

This commit is contained in:
Zamitto 2024-10-19 17:23:26 -03:00
parent 89bb099caa
commit f0a2bf2f48
10 changed files with 291 additions and 203 deletions

View file

@ -259,6 +259,17 @@ contextBridge.exposeInMainWorld("electron", {
getUserStats: (userId: string) => ipcRenderer.invoke("getUserStats", userId),
reportUser: (userId: string, reason: string, description: string) =>
ipcRenderer.invoke("reportUser", userId, reason, description),
getComparedUnlockedAchievements: (
objectId: string,
shop: GameShop,
userId: string
) =>
ipcRenderer.invoke(
"getComparedUnlockedAchievements",
objectId,
shop,
userId
),
/* Auth */
signOut: () => ipcRenderer.invoke("signOut"),