Skip to content

Commit

Permalink
fix: remove unnecesary default sort
Browse files Browse the repository at this point in the history
  • Loading branch information
damif94 committed Sep 12, 2023
1 parent 1dcc5c0 commit 6d360b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (r Repository[M, D, SF, SORD, SO, UF]) BuildSearchOrders(so SearchOrderer)
ordersMap := so.ToMap()

if len(ordersMap) == 0 {
return bson.D{{Key: "_id", Value: 1}}, nil
return nil, nil
}

var orders bson.D
Expand Down

0 comments on commit 6d360b0

Please sign in to comment.