summaryrefslogtreecommitdiff
path: root/system/api/analytics
diff options
context:
space:
mode:
Diffstat (limited to 'system/api/analytics')
-rw-r--r--system/api/analytics/init.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go
index 41c24c7..6558adf 100644
--- a/system/api/analytics/init.go
+++ b/system/api/analytics/init.go
@@ -66,7 +66,7 @@ func Init() {
}
err = store.Update(func(tx *bolt.Tx) error {
- _, err := tx.CreateBucketIfNotExists([]byte("requests"))
+ _, err := tx.CreateBucketIfNotExists([]byte("__requests"))
if err != nil {
return err
}
@@ -138,7 +138,7 @@ func ChartData() (map[string]interface{}, error) {
// get api request analytics from db
var requests = []apiRequest{}
err := store.View(func(tx *bolt.Tx) error {
- b := tx.Bucket([]byte("requests"))
+ b := tx.Bucket([]byte("__requests"))
err := b.ForEach(func(k, v []byte) error {
var r apiRequest