From df8495df77064600600ec88a81a503b54d31259f Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 22 Dec 2024 15:36:51 -0700 Subject: [PATCH] Add proportion and total made to leaderboard query --- src/index.tsx | 4 ++++ src/operations/leaderboards.gql | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 19d9209..f9b71a3 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3108,6 +3108,8 @@ export type GetMakesLeaderboardQuery = { entries: Array<{ __typename?: "UserShotCountEntry"; value: number; + proportionMade: number; + total: number; user: { __typename?: "UserGQL"; id: number; @@ -5165,6 +5167,8 @@ export const GetMakesLeaderboardDocument = gql` profileImageUri } value + proportionMade + total } } } diff --git a/src/operations/leaderboards.gql b/src/operations/leaderboards.gql index 5227e60..2c6449e 100644 --- a/src/operations/leaderboards.gql +++ b/src/operations/leaderboards.gql @@ -7,6 +7,8 @@ query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) { profileImageUri } value + proportionMade + total } } }