From 93fbf89235828049eb1aef485bc8fef890ddf8e6 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 5 Dec 2016 10:53:02 -0800 Subject: update db.Query to return total of content count, add implement change throughout references, add pagination to admin post results --- system/api/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/api') 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]) -- cgit v1.2.3