From 1adc89b841cdaabf3a5b9848a92d48d7abff65e4 Mon Sep 17 00:00:00 2001 From: "Yusuf A. Hasan Miyan" Date: Tue, 22 Oct 2024 11:21:24 +0400 Subject: [PATCH] fix: url should not be a token obviously --- pkg/lagoon/lagoon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/lagoon/lagoon.go b/pkg/lagoon/lagoon.go index 773be47..ebcc49d 100644 --- a/pkg/lagoon/lagoon.go +++ b/pkg/lagoon/lagoon.go @@ -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