Skip to content

Commit

Permalink
fix: use previous graphql strings
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnu-deepsource committed Feb 7, 2024
1 parent 9ca8b3e commit 1d89f60
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions command/report/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,20 @@ func (c *Client) CompressionEnabled() (bool, error) {
return false, nil
}

const createArtifactMutationNew = `mutation($input: CreateArtifactInput!) {
createArtifact(input: $input) {
ok
message
error
}
}`

const createArtifactMutationOld = `mutation($input: CreateArtifactInput!) {
createArtifact(input: $input) {
ok
error
}
}`
// const createArtifactMutationNew = `mutation($input: CreateArtifactInput!) {
// createArtifact(input: $input) {
// ok
// message
// error
// }
// }`

// const createArtifactMutationOld = `mutation($input: CreateArtifactInput!) {
// createArtifact(input: $input) {
// ok
// error
// }
// }`

type CreateArtifactResponse struct {
CreateArtifact CreateArtifact `json:"createArtifact"`
Expand All @@ -105,7 +105,7 @@ type CreateArtifactInput struct {
}

func (c *Client) SendReportNew(input *CreateArtifactInput) (*CreateArtifactResponse, error) {
req := graphql.NewRequest(createArtifactMutationNew)
req := graphql.NewRequest(reportGraphqlQuery)
req.Var("input", input)

resp := CreateArtifactResponse{}
Expand All @@ -119,7 +119,7 @@ func (c *Client) SendReportNew(input *CreateArtifactInput) (*CreateArtifactRespo
}

func (c *Client) SendReportOld(input *CreateArtifactInput) (*CreateArtifactResponse, error) {
req := graphql.NewRequest(createArtifactMutationOld)
req := graphql.NewRequest(reportGraphqlQueryOld)
req.Var("input", input)

resp := CreateArtifactResponse{}
Expand Down

0 comments on commit 1d89f60

Please sign in to comment.