aboutsummaryrefslogtreecommitdiff
path: root/api/entry.go
diff options
context:
space:
mode:
authorGravatar fred <f@miniflux.net> 2023-06-19 14:00:10 -0700
committerGravatar Frédéric Guillot <f@miniflux.net> 2023-06-19 14:13:19 -0700
commit28775f5e10b1b00e717abd06f369c45eae2bdea1 (patch)
treefeb777b58c1f30899aed0f3eaab2951d0ea3593a /api/entry.go
parent095bec072c944ceafc1e09221c5c37ebe17eccb5 (diff)
downloadv2-28775f5e10b1b00e717abd06f369c45eae2bdea1.tar.gz
v2-28775f5e10b1b00e717abd06f369c45eae2bdea1.tar.zst
v2-28775f5e10b1b00e717abd06f369c45eae2bdea1.zip
Refactor entry/feed query builder sorting to match SQL semantic
Diffstat (limited to 'api/entry.go')
-rw-r--r--api/entry.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/api/entry.go b/api/entry.go
index e64e867f..5545b200 100644
--- a/api/entry.go
+++ b/api/entry.go
@@ -143,8 +143,7 @@ func (h *handler) findEntries(w http.ResponseWriter, r *http.Request, feedID int
builder.WithFeedID(feedID)
builder.WithCategoryID(categoryID)
builder.WithStatuses(statuses)
- builder.WithOrder(order)
- builder.WithDirection(direction)
+ builder.WithSorting(order, direction)
builder.WithOffset(offset)
builder.WithLimit(limit)
builder.WithTags(tags)