Load identity email_address on coredata.MembershipProfile

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-02-03 19:45:03 +04:00
parent e156a428d4
commit 6328952c6f
7 changed files with 95 additions and 54 deletions

View File

@@ -267,6 +267,7 @@ func (s *AccountService) AcceptInvitation(
profile := &coredata.MembershipProfile{
ID: gid.New(tenantID, coredata.MembershipProfileEntityType),
IdentityID: identity.ID,
MembershipID: membership.ID,
FullName: identity.FullName,
CreatedAt: now,

View File

@@ -667,6 +667,7 @@ func (s *OrganizationService) CreateOrganization(
profile := &coredata.MembershipProfile{
ID: gid.New(tenantID, coredata.MembershipProfileEntityType),
IdentityID: identity.ID,
MembershipID: membership.ID,
FullName: identity.FullName,
CreatedAt: now,

View File

@@ -318,6 +318,7 @@ func (s *Service) HandleAssertion(
membershipProfile := &coredata.MembershipProfile{
ID: gid.New(membership.ID.TenantID(), coredata.MembershipProfileEntityType),
IdentityID: identity.ID,
MembershipID: membership.ID,
FullName: fullname,
CreatedAt: now,

View File

@@ -197,6 +197,7 @@ func (s *Service) CreateUser(
// Create membership profile
membershipProfile := &coredata.MembershipProfile{
ID: gid.New(membership.ID.TenantID(), coredata.MembershipProfileEntityType),
IdentityID: identity.ID,
MembershipID: membership.ID,
FullName: fullName,
CreatedAt: now,