Skip to content

Commit

Permalink
apikey file changed
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhikhapare committed Jun 29, 2023
1 parent dad13ef commit addf6f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/upstash/api_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func APIKey() schema.CredentialType {
return schema.CredentialType{
Name: credname.APIKey,
DocsURL: sdk.URL("https://docs.upstash.com/redis/account/developerapi#create-an-api-key"), // TODO: Replace with actual URL
DocsURL: sdk.URL("https://docs.upstash.com/redis/account/developerapi#create-an-api-key"),

Check failure on line 17 in plugins/upstash/api_key.go

View workflow job for this annotation

GitHub Actions / Lint

File is not `gofmt`-ed with `-s` (gofmt)
ManagementURL: sdk.URL("https://console.upstash.com/account/api"),
Fields: []schema.CredentialField{
{
Expand Down Expand Up @@ -57,7 +57,7 @@ var defaultEnvVarMapping = map[string]sdk.FieldName{
func TryUpstashConfigFile() sdk.Importer {
return importer.TryFile("~/.upstash.json", func(ctx context.Context, contents importer.FileContents, in sdk.ImportInput, out *sdk.ImportAttempt) {
var config Config
if err := contents.ToYAML(&config); err != nil {
if err := contents.ToJSON(&config); err != nil {
out.AddError(err)
return
}
Expand Down

0 comments on commit addf6f1

Please sign in to comment.