Skip to content

Commit

Permalink
fix: add sort options
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyun-git authored Aug 7, 2024
1 parent 3761a82 commit 17dbaa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/meme.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ async function searchMemeByKeyword(
)
.skip((page - 1) * size)
.limit(size)
.sort({ reaction: -1 })
.sort({ reaction: -1, _id: 1 })
.lean();

const memeList = await getMemeListWithKeywordsAndisSavedAndisReaction(user, searchedMemeList);
Expand Down

0 comments on commit 17dbaa4

Please sign in to comment.