console: update enterprise users query

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9292
GitOrigin-RevId: 692e2c66f6689426f5f9d369cc03b06978acfecf
This commit is contained in:
Mihir A Khandekar 2023-05-25 13:36:50 +05:30 committed by hasura-bot
parent 7e4c24aea0
commit a7fa1befd8

View File

@ -540,7 +540,7 @@ const idTokenReceived =
privileges: decodedToken.payload.collaborator_privileges || [],
metricsFQDN: decodedToken.payload.metrics_fqdn,
plan_name: project?.plan_name,
is_enterprise_user: project?.enterprise_users?.is_active,
is_enterprise_user: project?.owner?.enterprise_user?.is_active,
entitlements: project?.entitlements,
},
});
@ -780,6 +780,9 @@ export const loadLuxProjectInfo = () => (dispatch, getState) => {
owner {
id
email
enterprise_user {
is_active
}
}
name
collaborators {
@ -798,9 +801,6 @@ export const loadLuxProjectInfo = () => (dispatch, getState) => {
}
}
plan_name
enterprise_users {
is_active
}
}
}
`,
@ -844,7 +844,7 @@ export const loadLuxProjectInfo = () => (dispatch, getState) => {
).map(p => p.privilege_slug),
metricsFQDN: project.tenant?.region_info?.metrics_fqdn || '',
plan_name: project?.plan_name,
is_enterprise_user: project?.enterprise_users?.is_active,
is_enterprise_user: project?.owner?.enterprise_user?.is_active,
entitlements: project?.entitlements,
};