mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 13:13:38 +00:00
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Merge branch 'main' into org_api
This commit is contained in:
@@ -99,12 +99,6 @@ func DomainToPb(d *query.Domain) *org_pb.Domain {
|
||||
IsVerified: d.IsVerified,
|
||||
IsPrimary: d.IsPrimary,
|
||||
ValidationType: DomainValidationTypeFromModel(d.ValidationType),
|
||||
Details: ToViewDetailsPb(
|
||||
d.Sequence,
|
||||
d.CreationDate,
|
||||
d.ChangeDate,
|
||||
d.OrgID,
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -76,9 +76,9 @@ func OrgStateToPb(state domain.OrgState) v2beta_org.OrgState {
|
||||
}
|
||||
|
||||
func createdOrganizationToPb(createdOrg *command.CreatedOrg) (_ *org.CreateOrganizationResponse, err error) {
|
||||
admins := make([]*org.CreateOrganizationResponse_CreatedAdmin, len(createdOrg.CreatedAdmins))
|
||||
admins := make([]*org.CreatedAdmin, len(createdOrg.CreatedAdmins))
|
||||
for i, admin := range createdOrg.CreatedAdmins {
|
||||
admins[i] = &org.CreateOrganizationResponse_CreatedAdmin{
|
||||
admins[i] = &org.CreatedAdmin{
|
||||
UserId: admin.ID,
|
||||
EmailCode: admin.EmailCode,
|
||||
PhoneCode: admin.PhoneCode,
|
||||
|
@@ -147,7 +147,7 @@ func Test_createdOrganizationToPb(t *testing.T) {
|
||||
want: &org.CreateOrganizationResponse{
|
||||
CreatedDate: timestamppb.New(now),
|
||||
Id: "orgID",
|
||||
CreatedAdmins: []*org.CreateOrganizationResponse_CreatedAdmin{
|
||||
CreatedAdmins: []*org.CreatedAdmin{
|
||||
{
|
||||
UserId: "id",
|
||||
EmailCode: gu.Ptr("emailCode"),
|
||||
|
Reference in New Issue
Block a user