diff options
| author | Steve Manuel <nilslice@gmail.com> | 2016-12-05 10:53:02 -0800 |
|---|---|---|
| committer | Steve Manuel <nilslice@gmail.com> | 2016-12-05 10:53:02 -0800 |
| commit | 93fbf89235828049eb1aef485bc8fef890ddf8e6 (patch) | |
| tree | 06a2c6bc727b54081d3aab46b53bd274f4edb407 /system/api/handlers.go | |
| parent | 6ab44d82f825d7013308c57c5ee758c89ef904a0 (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/handlers.go')
| -rw-r--r-- | system/api/handlers.go | 2 |
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]) |
