Skip to content

Commit

Permalink
fix goang ci lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kofoworola committed Sep 18, 2023
1 parent 4be9844 commit dd231e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions analytics/aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,14 @@ type GraphSQLAnalyticsRecordAggregate struct {

Counter `json:"counter" gorm:"embedded"`

TimeStamp int64 `json:"timestamp"`
OrgID string `json:"org_id"`
ApiID string `json:"api_id"`
Dimension string `json:"dimension"`
DimensionValue string `json:"dimension_value"`
APIID string `json:"api_id"`

Code `json:"code" gorm:"embedded"`

TimeStamp int64 `json:"timestamp"`
}

type Code struct {
Expand Down
2 changes: 1 addition & 1 deletion pumps/graph_sql_aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (s *GraphSQLAggregatePump) DoAggregatedWriting(ctx context.Context, table,
rec := analytics.GraphSQLAnalyticsRecordAggregate{
ID: hex.EncodeToString([]byte(fmt.Sprintf("%v", ag.TimeStamp.Unix()) + apiID + d.Name + d.Value)),
OrgID: orgID,
ApiID: apiID,
APIID: apiID,
TimeStamp: ag.TimeStamp.Unix(),
Counter: *d.Counter,
Dimension: d.Name,
Expand Down

0 comments on commit dd231e8

Please sign in to comment.