summaryrefslogtreecommitdiff
path: root/system/api
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-05 10:53:02 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-05 10:53:02 -0800
commit93fbf89235828049eb1aef485bc8fef890ddf8e6 (patch)
tree06a2c6bc727b54081d3aab46b53bd274f4edb407 /system/api
parent6ab44d82f825d7013308c57c5ee758c89ef904a0 (diff)
update db.Query to return total of content count, add implement change throughout references, add pagination to admin post results
Diffstat (limited to 'system/api')
-rw-r--r--system/api/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/api/handlers.go b/system/api/handlers.go
index afe5819..1d7dc8f 100644
--- a/system/api/handlers.go
+++ b/system/api/handlers.go
@@ -72,7 +72,7 @@ func postsHandler(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])