Skip to content

Commit

Permalink
fix: query result member type fix (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: cyruslo <[email protected]>
  • Loading branch information
cyruslo authored Nov 27, 2023
1 parent 26e1941 commit 696c8ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opengemini/query_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import "errors"

// SeriesResult contains the results of a series query
type SeriesResult struct {
Series []Series `json:"series,omitempty"`
Error string `json:"error,omitempty"`
Series []*Series `json:"series,omitempty"`
Error string `json:"error,omitempty"`
}

// QueryResult is the top-level struct
type QueryResult struct {
Results []SeriesResult `json:"results,omitempty"`
Error string `json:"error,omitempty"`
Results []*SeriesResult `json:"results,omitempty"`
Error string `json:"error,omitempty"`
}

func (result *QueryResult) hasError() error {
Expand Down

0 comments on commit 696c8ce

Please sign in to comment.