Skip to content

Commit

Permalink
fixed sort
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaStelmashchuk committed Sep 20, 2024
1 parent 5146d43 commit 0ea674b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/filetrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async function getCocktailSubsetByFilter(filters, skip, limit, sortType = 'most-
const sortStage = {
$sort: sortType === 'most-popular'
? { visitCount: -1 }
: { ratingScore: -1 }
: { ratingScore: -1, ratingCount: -1, visitCount: -1 }
};

const projectStage = {
Expand Down

0 comments on commit 0ea674b

Please sign in to comment.