mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fix(admin): setup converter only adds domain if set (#358)
This commit is contained in:
parent
b8798230b0
commit
a6ffb120fa
@ -19,10 +19,15 @@ func setUpRequestToModel(setUp *OrgSetUpRequest) *admin_model.SetupOrg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func orgCreateRequestToModel(org *CreateOrgRequest) *org_model.Org {
|
func orgCreateRequestToModel(org *CreateOrgRequest) *org_model.Org {
|
||||||
return &org_model.Org{
|
o := &org_model.Org{
|
||||||
Domains: []*org_model.OrgDomain{&org_model.OrgDomain{Domain: org.Domain}},
|
Domains: []*org_model.OrgDomain{},
|
||||||
Name: org.Name,
|
Name: org.Name,
|
||||||
}
|
}
|
||||||
|
if org.Domain != "" {
|
||||||
|
o.Domains = append(o.Domains, &org_model.OrgDomain{Domain: org.Domain})
|
||||||
|
}
|
||||||
|
|
||||||
|
return o
|
||||||
}
|
}
|
||||||
|
|
||||||
func userCreateRequestToModel(user *CreateUserRequest) *usr_model.User {
|
func userCreateRequestToModel(user *CreateUserRequest) *usr_model.User {
|
||||||
|
Loading…
Reference in New Issue
Block a user