Fix missing user_id for people
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -179,6 +179,7 @@ func (s PeopleService) Create(
|
|||||||
FullName: req.FullName,
|
FullName: req.FullName,
|
||||||
PrimaryEmailAddress: req.PrimaryEmailAddress,
|
PrimaryEmailAddress: req.PrimaryEmailAddress,
|
||||||
AdditionalEmailAddresses: req.AdditionalEmailAddresses,
|
AdditionalEmailAddresses: req.AdditionalEmailAddresses,
|
||||||
|
UserID: req.UserID,
|
||||||
CreatedAt: now,
|
CreatedAt: now,
|
||||||
UpdatedAt: now,
|
UpdatedAt: now,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -768,13 +768,14 @@ func (s Service) ConfirmInvitation(ctx context.Context, tokenString string, pass
|
|||||||
}
|
}
|
||||||
|
|
||||||
people := coredata.People{
|
people := coredata.People{
|
||||||
OrganizationID: token.Data.OrganizationID,
|
OrganizationID: token.Data.OrganizationID,
|
||||||
UserID: &user.ID,
|
UserID: &user.ID,
|
||||||
FullName: token.Data.FullName,
|
FullName: token.Data.FullName,
|
||||||
PrimaryEmailAddress: token.Data.Email,
|
PrimaryEmailAddress: token.Data.Email,
|
||||||
Kind: coredata.PeopleKindEmployee,
|
Kind: coredata.PeopleKindEmployee,
|
||||||
CreatedAt: now,
|
AdditionalEmailAddresses: []string{},
|
||||||
UpdatedAt: now,
|
CreatedAt: now,
|
||||||
|
UpdatedAt: now,
|
||||||
}
|
}
|
||||||
|
|
||||||
scope := coredata.NewScope(token.Data.OrganizationID.TenantID())
|
scope := coredata.NewScope(token.Data.OrganizationID.TenantID())
|
||||||
|
|||||||
Reference in New Issue
Block a user