mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Refactor entry/feed query builder sorting to match SQL semantic
This commit is contained in:
parent
095bec072c
commit
28775f5e10
15 changed files with 44 additions and 79 deletions
|
@ -38,8 +38,7 @@ func (h *handler) showFeedEntriesPage(w http.ResponseWriter, r *http.Request) {
|
|||
builder := h.store.NewEntryQueryBuilder(user.ID)
|
||||
builder.WithFeedID(feed.ID)
|
||||
builder.WithStatus(model.EntryStatusUnread)
|
||||
builder.WithOrder(user.EntryOrder)
|
||||
builder.WithDirection(user.EntryDirection)
|
||||
builder.WithSorting(user.EntryOrder, user.EntryDirection)
|
||||
builder.WithOffset(offset)
|
||||
builder.WithLimit(user.EntriesPerPage)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue