refactor: updated dashboard gql queries and components to use the new infra type of the updated schema (#3455)
This commit is contained in:
committed by
GitHub
parent
a215860782
commit
9dcbc4a126
@@ -179,7 +179,7 @@ onMounted(async () => {
|
||||
if (result.error) {
|
||||
toast.error(`${t('users.load_info_error')}`);
|
||||
}
|
||||
user.value = result.data?.admin.userInfo ?? {};
|
||||
user.value = result.data?.infra.userInfo ?? {};
|
||||
fetching.value = false;
|
||||
});
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ const {
|
||||
hasNextPage,
|
||||
} = usePagedQuery(
|
||||
UsersListDocument,
|
||||
(x) => x.admin.allUsers,
|
||||
(x) => x.infra.allUsers,
|
||||
(x) => x.uid,
|
||||
usersPerPage,
|
||||
{ cursor: undefined, take: usersPerPage }
|
||||
|
||||
@@ -101,5 +101,5 @@ const getCreatedTime = (date: string) => format(new Date(date), 'hh:mm a');
|
||||
|
||||
// Get Invited Users
|
||||
const { fetching, error, data } = useQuery({ query: InvitedUsersDocument });
|
||||
const invitedUsers = computed(() => data?.value?.admin.invitedUsers);
|
||||
const invitedUsers = computed(() => data?.value?.infra.invitedUsers);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user