Skip to content

Commit

Permalink
SentFile: use db.OrderByID()
Browse files Browse the repository at this point in the history
  • Loading branch information
maurycy authored Nov 11, 2020
1 parent 9e093b9 commit 697ca55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/textile/model/sent_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (m *model) ListSentFiles(ctx context.Context, seek string, limit int) ([]*S
return nil, err
}

query := db.OrderBy("CreatedAt").LimitTo(limit)
query := db.OrderByID().LimitTo(limit)

if seek != "" {
query = query.SeekID(core.InstanceID(seek))
Expand Down

0 comments on commit 697ca55

Please sign in to comment.