Skip to content

Commit

Permalink
removed a testing control line
Browse files Browse the repository at this point in the history
  • Loading branch information
adriiglz committed Apr 5, 2024
1 parent a239e6b commit 51029fa
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion users/userservice/user-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ app.get('/rankings/:filter', async (req, res) => {
const userRanking = getRankingFor(loggedUser) */

const category = req.params.filter;
console.log(category);
const usersRanking = (await User.find());
const ascendingUsers = R.sortBy(R.prop("ranking." + category + ".points"), usersRanking);
const sortedUsers = R.reverse(ascendingUsers);
Expand Down

0 comments on commit 51029fa

Please sign in to comment.