diff --git a/apps/client/src/components/AdminRoleForm.vue b/apps/client/src/components/AdminRoleForm.vue index 46facd00c..f0e2a2de6 100644 --- a/apps/client/src/components/AdminRoleForm.vue +++ b/apps/client/src/components/AdminRoleForm.vue @@ -105,7 +105,7 @@ async function switchUserMembership(checked: boolean, user: User, fromSuggestion } } onBeforeMount(async () => { - users.value = await usersStore.listUsers({ adminRoleId: role.value.id }) + users.value = await usersStore.listUsers({ adminRoleIds: role.value.id }) }) diff --git a/apps/client/src/stores/users.ts b/apps/client/src/stores/users.ts index b96ed5300..89f79700a 100644 --- a/apps/client/src/stores/users.ts +++ b/apps/client/src/stores/users.ts @@ -3,7 +3,7 @@ import type { userContract } from '@cpn-console/shared' import { apiClient, extractData } from '@/api/xhr-client.js' export const useUsersStore = defineStore('users', () => { - const listUsers = async (query: typeof userContract.getAllUsers.query._type) => + const listUsers = async (query: typeof userContract.getAllUsers.query._input) => apiClient.Users.getAllUsers({ query }) .then(res => extractData(res, 200)) diff --git a/apps/client/src/views/admin/AdminRoles.vue b/apps/client/src/views/admin/AdminRoles.vue index d14747ae0..9066b4b63 100644 --- a/apps/client/src/views/admin/AdminRoles.vue +++ b/apps/client/src/views/admin/AdminRoles.vue @@ -55,7 +55,6 @@ onBeforeMount(async () => {