mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +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
|
@ -25,7 +25,8 @@ func (h *handler) showHistoryPage(w http.ResponseWriter, r *http.Request) {
|
|||
offset := request.QueryIntParam(r, "offset", 0)
|
||||
builder := h.store.NewEntryQueryBuilder(user.ID)
|
||||
builder.WithStatus(model.EntryStatusRead)
|
||||
builder.WithOrder("changed_at DESC, published_at DESC")
|
||||
builder.WithSorting("changed_at", "DESC")
|
||||
builder.WithSorting("published_at", "DESC")
|
||||
builder.WithOffset(offset)
|
||||
builder.WithLimit(user.EntriesPerPage)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue