Skip to content

Commit

Permalink
chore(api): sort result request in desc order
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Jul 17, 2021
1 parent 0740de1 commit 8823c4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/api/src/repository/ResultRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class ResultRequestRepository {
return (
await this.collection
.find({ feedId: feedId.toString() })
.sort({ timestamp: -1 })
.skip(size * (page - 1))
.limit(size)
.toArray()
Expand Down

0 comments on commit 8823c4f

Please sign in to comment.