Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kofoworola committed Aug 22, 2023
1 parent 84bb0e2 commit 9b48f0c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions analytics/graph_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/buger/jsonparser"
"io/ioutil"
"net/http"

"github.com/buger/jsonparser"

"github.com/TykTechnologies/graphql-go-tools/pkg/ast"
"github.com/TykTechnologies/graphql-go-tools/pkg/astnormalization"
"github.com/TykTechnologies/graphql-go-tools/pkg/astparser"
Expand Down Expand Up @@ -39,7 +38,12 @@ type GraphRecord struct {
HasErrors bool `gorm:"has_errors"`
}

// TableName is used by both the sql orm and mongo driver the table name and collection name used for operations on this model
// the conditional return is to ensure the right value is used for both the sql and mongo operations
func (g *GraphRecord) TableName() string {
if GraphSQLTableName == "" {
return g.AnalyticsRecord.TableName()
}
return GraphSQLTableName
}

Expand Down

0 comments on commit 9b48f0c

Please sign in to comment.