summaryrefslogtreecommitdiff
path: root/system/api
diff options
context:
space:
mode:
Diffstat (limited to 'system/api')
-rw-r--r--system/api/analytics/init.go2
-rw-r--r--system/api/external.go2
-rw-r--r--system/api/handlers.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go
index 41c24c7..7cb35af 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
}
diff --git a/system/api/external.go b/system/api/external.go
index 2e9597e..0d1ea03 100644
--- a/system/api/external.go
+++ b/system/api/external.go
@@ -132,7 +132,7 @@ func externalContentHandler(res http.ResponseWriter, req *http.Request) {
return
}
} else {
- spec = "_pending"
+ spec = "__pending"
}
_, err = db.SetContent(t+spec+":-1", req.PostForm)
diff --git a/system/api/handlers.go b/system/api/handlers.go
index f31a1eb..8a1517b 100644
--- a/system/api/handlers.go
+++ b/system/api/handlers.go
@@ -72,7 +72,7 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) {
Order: order,
}
- _, bb := db.Query(t+"_sorted", opts)
+ _, bb := db.Query(t+"__sorted", opts)
var result = []json.RawMessage{}
for i := range bb {
result = append(result, bb[i])