From 4f78cd94ab75af55ddab86e490627c5b4edd15e4 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 16 Jan 2025 17:01:32 -0700 Subject: [PATCH] Add video info to longest runs leaderboard --- src/index.tsx | 9 +++++++++ src/operations/leaderboards.gql | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 5e05571..f838bfe 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3219,6 +3219,11 @@ export type GetRunsLeaderboardQuery = { __typename?: "RunGQL"; id: number; runLength: number; + video: { + __typename?: "VideoGQL"; + name?: string | null; + createdAt?: any | null; + }; user: { __typename?: "UserGQL"; id: number; @@ -5355,6 +5360,10 @@ export const GetRunsLeaderboardDocument = gql` entries { id runLength + video { + name + createdAt + } user { id username diff --git a/src/operations/leaderboards.gql b/src/operations/leaderboards.gql index ee5c437..506926c 100644 --- a/src/operations/leaderboards.gql +++ b/src/operations/leaderboards.gql @@ -18,6 +18,10 @@ query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) { entries { id runLength + video { + name + createdAt + } user { id username