Skip to content

Commit

Permalink
fix application or ordering for interface change
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jan 24, 2019
1 parent 4a09354 commit 13d98d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ func (t *txn) Query(q dsq.Query) (dsq.Results, error) {
for _, f := range q.Filters {
qr = dsq.NaiveFilter(qr, f)
}
for _, o := range q.Orders {
qr = dsq.NaiveOrder(qr, o)
if len(q.Orders) > 0 {
qr = dsq.NaiveOrder(qr, q.Orders...)
}

return qr, nil
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
},
{
"author": "jbenet",
"hash": "Qmf4xQhNomPNhrtZc67qSnfJSjxjXs9LWvknJtSXwimPrM",
"hash": "QmPGYyi1DtuWyUkG3PtvLz1xb4ScjnUvwJMCoX3cxeyxNr",
"name": "go-datastore",
"version": "3.4.1"
"version": "3.5.0"
},
{
"author": "dgraph-io",
Expand Down

0 comments on commit 13d98d3

Please sign in to comment.