Skip to content

Commit

Permalink
Reorder some query fields
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Feb 29, 2024
1 parent 9d9dcea commit 1c50458
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions usage/query_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ type FromToQuerySpec struct {
From, To *time.Time
}

var allowedTimeSteps = map[string]bool{
"hour": true,
"day": true,
}

type QueryFilter struct {
CreatorID string
UserID string
Expand All @@ -27,6 +22,11 @@ type QuerySpec struct {
BreakdownBy []string
}

var allowedTimeSteps = map[string]bool{
"hour": true,
"day": true,
}

var usageBreakdownFields = map[string]string{
"creatorId": "creator_id",
}
Expand Down

0 comments on commit 1c50458

Please sign in to comment.