This commit is contained in:
@@ -28,6 +28,7 @@ type Account struct {
|
||||
TenantName string `json:"tenant_name"`
|
||||
PolicyVersion string `json:"policy_version"`
|
||||
PlatformRole string `json:"platform_role"`
|
||||
AccountKind string `json:"account_kind"`
|
||||
DisplayName string `json:"display_name"`
|
||||
Memberships []HouseholdMembership `json:"household_memberships"`
|
||||
}
|
||||
@@ -60,6 +61,7 @@ func (r *Repository) CurrentUser(ctx context.Context, principal Principal) (Curr
|
||||
t.name,
|
||||
t.policy_version,
|
||||
ua.platform_role,
|
||||
ua.account_kind,
|
||||
COALESCE(ua.display_name, ''),
|
||||
COALESCE(
|
||||
jsonb_agg(
|
||||
@@ -95,6 +97,7 @@ func (r *Repository) CurrentUser(ctx context.Context, principal Principal) (Curr
|
||||
&account.TenantName,
|
||||
&account.PolicyVersion,
|
||||
&account.PlatformRole,
|
||||
&account.AccountKind,
|
||||
&account.DisplayName,
|
||||
&membershipsJSON,
|
||||
); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user