summaryrefslogtreecommitdiff
path: root/srv/src/http/index.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-20 17:31:44 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-20 17:31:44 -0600
commit47d478790742a8876af187b34b766b0e8a772bf5 (patch)
treee51f5afcd138a1c7cca5ca3b403f02d01b81a318 /srv/src/http/index.go
parent99f8c1188ccd1580f58ad4c21cece040ed8e874c (diff)
Always return results in time desc order from PostStore
Diffstat (limited to 'srv/src/http/index.go')
-rw-r--r--srv/src/http/index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/srv/src/http/index.go b/srv/src/http/index.go
index bb76568..4557f95 100644
--- a/srv/src/http/index.go
+++ b/srv/src/http/index.go
@@ -30,7 +30,7 @@ func (a *api) renderIndexHandler() http.Handler {
return
}
- posts, hasMore, err := a.params.PostStore.WithOrderDesc().Get(page, pageCount)
+ posts, hasMore, err := a.params.PostStore.Get(page, pageCount)
if err != nil {
apiutil.InternalServerError(
rw, r, fmt.Errorf("fetching page %d of posts: %w", page, err),