From 196f4bcd64713598999a7f69695288084c70ea49 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Thu, 24 Apr 2025 16:41:35 -0700 Subject: [PATCH] Fix missing user_id for people Signed-off-by: Bryan Frimin --- pkg/probo/people_service.go | 1 + pkg/usrmgr/usrmgr.go | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pkg/probo/people_service.go b/pkg/probo/people_service.go index c9b8ad6fa..03cdd4e45 100644 --- a/pkg/probo/people_service.go +++ b/pkg/probo/people_service.go @@ -179,6 +179,7 @@ func (s PeopleService) Create( FullName: req.FullName, PrimaryEmailAddress: req.PrimaryEmailAddress, AdditionalEmailAddresses: req.AdditionalEmailAddresses, + UserID: req.UserID, CreatedAt: now, UpdatedAt: now, } diff --git a/pkg/usrmgr/usrmgr.go b/pkg/usrmgr/usrmgr.go index e2202a9b3..0ddc61455 100644 --- a/pkg/usrmgr/usrmgr.go +++ b/pkg/usrmgr/usrmgr.go @@ -768,13 +768,14 @@ func (s Service) ConfirmInvitation(ctx context.Context, tokenString string, pass } people := coredata.People{ - OrganizationID: token.Data.OrganizationID, - UserID: &user.ID, - FullName: token.Data.FullName, - PrimaryEmailAddress: token.Data.Email, - Kind: coredata.PeopleKindEmployee, - CreatedAt: now, - UpdatedAt: now, + OrganizationID: token.Data.OrganizationID, + UserID: &user.ID, + FullName: token.Data.FullName, + PrimaryEmailAddress: token.Data.Email, + Kind: coredata.PeopleKindEmployee, + AdditionalEmailAddresses: []string{}, + CreatedAt: now, + UpdatedAt: now, } scope := coredata.NewScope(token.Data.OrganizationID.TenantID())