Skip to content

Commit e602282

Browse files
Copilotjsj
authored andcommitted
fix: update session field casts to float32 to match synced API types (supabase#4999)
1 parent 7aa63d8 commit e602282

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)