mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use descending savedAt search when syncing to pull in newest items
This commit is contained in:
parent
cd91b3b8bf
commit
a0def56965
1 changed files with 3 additions and 0 deletions
|
|
@ -62,11 +62,14 @@ extension DataService {
|
|||
)
|
||||
}
|
||||
|
||||
let sort = InputObjects.SortParams(by: Enums.SortBy.savedAt, order: OptionalArgument(Enums.SortOrder.descending))
|
||||
|
||||
let query = Selection.Query {
|
||||
try $0.updatesSince(
|
||||
after: OptionalArgument(cursor),
|
||||
first: OptionalArgument(limit),
|
||||
since: DateTime(from: since),
|
||||
sort: OptionalArgument(sort),
|
||||
selection: selection
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue