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
@@ -77,11 +77,11 @@ const t = useI18n();
|
||||
const toast = useToast();
|
||||
// Get Users List
|
||||
const { data } = useQuery({ query: MetricsDocument });
|
||||
const usersPerPage = computed(() => data.value?.admin.usersCount || 10000);
|
||||
const usersPerPage = computed(() => data.value?.infra.usersCount || 10000);
|
||||
|
||||
const { list: usersList } = usePagedQuery(
|
||||
UsersListDocument,
|
||||
(x) => x.admin.allUsers,
|
||||
(x) => x.infra.allUsers,
|
||||
(x) => x.uid,
|
||||
usersPerPage.value,
|
||||
{ cursor: undefined, take: usersPerPage.value }
|
||||
@@ -100,7 +100,7 @@ const {
|
||||
hasNextPage,
|
||||
} = usePagedQuery(
|
||||
TeamListDocument,
|
||||
(x) => x.admin.allTeams,
|
||||
(x) => x.infra.allTeams,
|
||||
(x) => x.id,
|
||||
teamsPerPage,
|
||||
{ cursor: undefined, take: teamsPerPage }
|
||||
|
||||
Reference in New Issue
Block a user