Skip to content

Commit 196e2b4

Browse files
authored
fix: update session field casts to float32 to match synced API types (#4999)
1 parent 2f2a846 commit 196e2b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/config/auth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,8 @@ func (m *mfa) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
629629
}
630630

631631
func (s sessions) toAuthConfigBody(body *v1API.UpdateAuthConfigBody) {
632-
body.SessionsTimebox = nullable.NewNullableWithValue(int(s.Timebox.Hours()))
633-
body.SessionsInactivityTimeout = nullable.NewNullableWithValue(int(s.InactivityTimeout.Hours()))
632+
body.SessionsTimebox = nullable.NewNullableWithValue(float32(s.Timebox.Hours()))
633+
body.SessionsInactivityTimeout = nullable.NewNullableWithValue(float32(s.InactivityTimeout.Hours()))
634634
}
635635

636636
func (s *sessions) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {

0 commit comments

Comments
 (0)