Skip to content

Commit

Permalink
minor patch
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed Sep 6, 2022
1 parent 65c11dc commit c90120b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphql/rolesForUser.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { getClient } from './client';
import { QuestChainInfoFragment, RolesForUserDocument, RolesForUserQuery, RolesForUserQueryVariables } from './types';

export type RolesForUser = {
export type UserRoles = {
ownerOf: QuestChainInfoFragment[];
adminOf: QuestChainInfoFragment[];
editorOf: QuestChainInfoFragment[];
reviewerOf: QuestChainInfoFragment[];
chainId: string;
};

export const getRolesForUser = async (chainId: string, address: string): Promise<RolesForUser | null> => {
export const getRolesForUser = async (chainId: string, address: string): Promise<UserRoles | null> => {
const { data, error } = await getClient(chainId)
.query<RolesForUserQuery, RolesForUserQueryVariables>(RolesForUserDocument, {
address: address.toLowerCase(),
Expand Down

0 comments on commit c90120b

Please sign in to comment.