Skip to content

Commit

Permalink
Fix databases deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
erebe committed Jun 6, 2024
1 parent fcea07b commit c7e98a9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ require (
github.com/pkg/errors v0.9.1
github.com/posthog/posthog-go v0.0.0-20240327112532-87b23fe11103
github.com/pterm/pterm v0.12.79
github.com/qovery/qovery-client-go v0.0.0-20240606115406-339d4138b0fd
github.com/qovery/qovery-client-go v0.0.0-20240606150432-55dbed84d9b9
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ github.com/qovery/qovery-client-go v0.0.0-20240606072918-84193eaca1eb h1:cnUhdm1
github.com/qovery/qovery-client-go v0.0.0-20240606072918-84193eaca1eb/go.mod h1:9eHj5a4EtXGIyfbvVL3HVYW9k7Xmiwi00OqHrP4dc10=
github.com/qovery/qovery-client-go v0.0.0-20240606115406-339d4138b0fd h1:KeHiaNz+MTH+7gDEqpJUEt6Im8nIjjS2XzYXdcCoH6A=
github.com/qovery/qovery-client-go v0.0.0-20240606115406-339d4138b0fd/go.mod h1:9eHj5a4EtXGIyfbvVL3HVYW9k7Xmiwi00OqHrP4dc10=
github.com/qovery/qovery-client-go v0.0.0-20240606133801-591619f2fddb h1:x0BIHsRF5VXcrYJAQolN2yDGzplCHAxFbgzlhwivDZg=
github.com/qovery/qovery-client-go v0.0.0-20240606133801-591619f2fddb/go.mod h1:9eHj5a4EtXGIyfbvVL3HVYW9k7Xmiwi00OqHrP4dc10=
github.com/qovery/qovery-client-go v0.0.0-20240606150432-55dbed84d9b9 h1:n/r3+Sw1oXKM4lV16OVUTD/bvBXfD6Vd34TRCUkEUgM=
github.com/qovery/qovery-client-go v0.0.0-20240606150432-55dbed84d9b9/go.mod h1:9eHj5a4EtXGIyfbvVL3HVYW9k7Xmiwi00OqHrP4dc10=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
Expand Down
2 changes: 1 addition & 1 deletion pkg/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func GetCurrentVersion() string {
return "0.94.6" // ci-version-check
return "0.94.7" // ci-version-check
}

func GetLatestOnlineVersionUrl() (string, error) {
Expand Down
4 changes: 1 addition & 3 deletions utils/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ func RefreshAccessToken() error {
}

func RefreshExpiredTokenSilently() bool {
token, _ := GetRefreshToken()
refreshToken := strings.TrimSpace(string(token))
expiration, err := GetAccessTokenExpiration()
if err == nil && expiration.After(time.Now()) && refreshToken != "" {
if err == nil && expiration.Before(time.Now()) {
return RefreshAccessToken() == nil
}

Expand Down

0 comments on commit c7e98a9

Please sign in to comment.