Skip to content

Commit c90120b

Browse files
committed
minor patch
1 parent 65c11dc commit c90120b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/graphql/rolesForUser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { getClient } from './client';
22
import { QuestChainInfoFragment, RolesForUserDocument, RolesForUserQuery, RolesForUserQueryVariables } from './types';
33

4-
export type RolesForUser = {
4+
export type UserRoles = {
55
ownerOf: QuestChainInfoFragment[];
66
adminOf: QuestChainInfoFragment[];
77
editorOf: QuestChainInfoFragment[];
88
reviewerOf: QuestChainInfoFragment[];
99
chainId: string;
1010
};
1111

12-
export const getRolesForUser = async (chainId: string, address: string): Promise<RolesForUser | null> => {
12+
export const getRolesForUser = async (chainId: string, address: string): Promise<UserRoles | null> => {
1313
const { data, error } = await getClient(chainId)
1414
.query<RolesForUserQuery, RolesForUserQueryVariables>(RolesForUserDocument, {
1515
address: address.toLowerCase(),

0 commit comments

Comments
 (0)