From 1c50458ae51b7f3d5749b568c57164f6c366aab9 Mon Sep 17 00:00:00 2001 From: Victor Elias Date: Wed, 28 Feb 2024 21:09:03 -0300 Subject: [PATCH] Reorder some query fields --- usage/query_spec.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usage/query_spec.go b/usage/query_spec.go index 72789e7..8ba13b3 100644 --- a/usage/query_spec.go +++ b/usage/query_spec.go @@ -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 @@ -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", }