Skip to content

Commit

Permalink
Fix 🐛 Bug reactplay#528: Plays needs to get sorted as per created date (
Browse files Browse the repository at this point in the history
reactplay#529)

* Fix Bug: Plays needs to get sorted as per created date reactplay#528

* Update fix reactplay#528: Sort descending by created date

* Update fix reactplay#528: Sort descending by created date through query object

Co-authored-by: Tapas Adhikary <[email protected]>
  • Loading branch information
dangvu0502 and atapas committed Aug 30, 2022
1 parent d863aaa commit 3adea88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/services/request/query/fetch-plays.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ export const BasiFetchParam = {
"name",
"slug",
{ user: ["id", "displayName", "avatarUrl"] },
"created_at",
],
orderBy: {
created_at: "desc",
},
};

export const DetailedFetchParam = {
Expand Down

0 comments on commit 3adea88

Please sign in to comment.