Skip to content

Commit

Permalink
helper: Fix graphql query
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaldjorMike committed Sep 20, 2023
1 parent 71e44d0 commit adb02eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion images/helper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG RELEASE_DATE=unknown

WORKDIR /src
COPY . /src
RUN CGO_ENABLED=0 go build -ldflags="-s -w -X 'main.version=$RELEASE_VERSION' -X 'main.commit=$RELEASE_COMMIT' -X 'main.date=$RELEASE_DATE'" -o /app /src/*.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 'main.version=$RELEASE_VERSION' -X 'main.commit=$RELEASE_COMMIT' -X 'main.date=$RELEASE_DATE'" -o /app /src/*.go

FROM scratch

Expand Down
3 changes: 2 additions & 1 deletion images/helper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"os"
"time"

graphql "github.com/cli/shurcooL-graphql"
humio "github.com/humio/cli/api"
corev1 "k8s.io/api/core/v1"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down Expand Up @@ -118,7 +119,7 @@ func listAllHumioUsersMultiOrg(client *humio.Client) ([]OrganizationSearchResult
}

variables := map[string]interface{}{
"username": adminAccountUserName,
"username": graphql.String(adminAccountUserName),
}

err := client.Query(&q, variables)
Expand Down
2 changes: 1 addition & 1 deletion pkg/helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ package helpers
import (
"crypto/sha256"
"fmt"
graphql "github.com/cli/shurcooL-graphql"
"os"
"reflect"
"sort"
"strings"

graphql "github.com/cli/shurcooL-graphql"
uberzap "go.uber.org/zap"
"go.uber.org/zap/zapcore"

Expand Down

0 comments on commit adb02eb

Please sign in to comment.