From 03c1d08d8c319e2d0edef07d69c3e928337452a1 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 13 Jul 2024 17:47:41 -0600 Subject: [PATCH] Request isAdmin in getLoggedInUser --- src/index.tsx | 2 ++ src/operations/user.gql | 1 + 2 files changed, 3 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index baa8c74..4d80ae5 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1360,6 +1360,7 @@ export type GetLoggedInUserQuery = { id: number; firebaseUid: string; username: string; + isAdmin: boolean; profileImageUri?: string | null; activeVideoId?: number | null; createdAt?: any | null; @@ -2243,6 +2244,7 @@ export const GetLoggedInUserDocument = gql` id firebaseUid username + isAdmin profileImageUri activeVideoId createdAt diff --git a/src/operations/user.gql b/src/operations/user.gql index 3cf6306..b63b767 100644 --- a/src/operations/user.gql +++ b/src/operations/user.gql @@ -24,6 +24,7 @@ query getLoggedInUser { id firebaseUid username + isAdmin profileImageUri activeVideoId createdAt