Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
fix skip operator
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaStelmashchuk committed Sep 27, 2024
1 parent 6e7e82d commit a3a1c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/filetrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ async function getCocktailSubsetByFilter(filters, skip, limit, sortType = 'most-

const sortStage = {
$sort: sortType === 'most-popular'
? { visitCount: -1 }
: { ratingScore: -1, ratingCount: -1, visitCount: -1 }
? { visitCount: -1, id: -1 }
: { ratingScore: -1, ratingCount: -1, visitCount: -1, id: -1 }
};

const projectStage = {
Expand Down

0 comments on commit a3a1c7b

Please sign in to comment.