mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
fix: type conversation (#894)
This commit is contained in:
parent
e7514998bf
commit
524a6d4467
@ -251,7 +251,7 @@ func idpConfigStylingTypeToModel(stylingType management.IdpStylingType) iam_mode
|
|||||||
}
|
}
|
||||||
|
|
||||||
func idpProviderTypeStringToModel(providerType string) (iam_model.IDPProviderType, error) {
|
func idpProviderTypeStringToModel(providerType string) (iam_model.IDPProviderType, error) {
|
||||||
i, _ := strconv.Atoi(providerType)
|
i, _ := strconv.ParseInt(providerType, 10, 32)
|
||||||
switch management.IdpProviderType(i) {
|
switch management.IdpProviderType(i) {
|
||||||
case management.IdpProviderType_IDPPROVIDERTYPE_SYSTEM:
|
case management.IdpProviderType_IDPPROVIDERTYPE_SYSTEM:
|
||||||
return iam_model.IDPProviderTypeSystem, nil
|
return iam_model.IDPProviderTypeSystem, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user