diff --git a/admin/src/graphql/searchUsers.js b/admin/src/graphql/searchUsers.js index 15fb8da32..315b2e1aa 100644 --- a/admin/src/graphql/searchUsers.js +++ b/admin/src/graphql/searchUsers.js @@ -26,7 +26,8 @@ export const searchUsers = gql` hasElopage emailConfirmationSend deletedAt - isAdmin + # isAdmin + roles } } } diff --git a/admin/src/graphql/setUserRole.js b/admin/src/graphql/setUserRole.js index 8cdcab396..8df86da6b 100644 --- a/admin/src/graphql/setUserRole.js +++ b/admin/src/graphql/setUserRole.js @@ -1,7 +1,7 @@ import gql from 'graphql-tag' export const setUserRole = gql` - mutation ($userId: Int!, $isAdmin: Boolean!) { - setUserRole(userId: $userId, isAdmin: $isAdmin) + mutation ($userId: Int!, $role: RoleNames!) { + setUserRole(userId: $userId, role: $role) } `