Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
Hotfix: GraphQL endpoint setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszraczylo committed May 29, 2021
1 parent f6ee821 commit db7e77e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gql.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ func prepare() {
value, present := os.LookupEnv("GRAPHQL_ENDPOINT")
if present {
GraphQLUrl = value
} else if zero.IsZero(GraphQLUrl) && !present {
} else if !present && zero.IsZero(GraphQLUrl) {
GraphQLUrl = "http://127.0.0.1:9090/v1/graphql"
fmt.Println("Setting default endpoint", GraphQLUrl)
} else {
fmt.Println("GraphQL endpoint not set.")
}
Expand Down

0 comments on commit db7e77e

Please sign in to comment.