Removed PassAll from ChangeFilter and fixed sort not being descending order.
the build was successful
the build was successful
This commit is contained in:
@@ -47,7 +47,7 @@ func (r *changeRepository) List(ctx context.Context, filter models.ChangeFilter)
|
||||
}
|
||||
|
||||
changes := make([]*models.Change, 0, initialSize)
|
||||
err := r.changes.Find(query).All(&changes)
|
||||
err := r.changes.Find(query).Sort("-date").Limit(limit).All(&changes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user