Skip to content

Commit

Permalink
fix: url should not be a token obviously
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufhm committed Oct 22, 2024
1 parent 8eb364a commit 1adc89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lagoon/lagoon.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func InitClient(apiBaseUrl, apiToken string) {
&oauth2.Token{AccessToken: apiToken},
)
httpClient := oauth2.NewClient(context.Background(), src)
Client = graphql.NewClient(apiToken+"/graphql", httpClient)
Client = graphql.NewClient(apiBaseUrl+"/graphql", httpClient)
}

// GetEnvironmentId derives the environment id from a Lagoon project
Expand Down

0 comments on commit 1adc89b

Please sign in to comment.