diff --git a/src/graphql/rolesForUser.ts b/src/graphql/rolesForUser.ts index ec5a193..76a35b3 100644 --- a/src/graphql/rolesForUser.ts +++ b/src/graphql/rolesForUser.ts @@ -1,7 +1,7 @@ import { getClient } from './client'; import { QuestChainInfoFragment, RolesForUserDocument, RolesForUserQuery, RolesForUserQueryVariables } from './types'; -export type RolesForUser = { +export type UserRoles = { ownerOf: QuestChainInfoFragment[]; adminOf: QuestChainInfoFragment[]; editorOf: QuestChainInfoFragment[]; @@ -9,7 +9,7 @@ export type RolesForUser = { chainId: string; }; -export const getRolesForUser = async (chainId: string, address: string): Promise => { +export const getRolesForUser = async (chainId: string, address: string): Promise => { const { data, error } = await getClient(chainId) .query(RolesForUserDocument, { address: address.toLowerCase(),