Skip to content

Commit

Permalink
Corrected filter for scoreboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Strikeeaglechase committed Aug 22, 2024
1 parent f13c8a2 commit 63f5d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class Application {
private async createScoreboardMessage() {
const embed = new Discord.EmbedBuilder({ title: "Scoreboard" });
// const filteredUsers = this.cachedSortedUsers.filter(u => u.elo != BASE_ELO && u.kills > KILLS_TO_RANK).slice(0, USERS_PER_PAGE);
let filteredUsers = await this.users.collection.find({ rank: { $lte: USERS_PER_PAGE } }).toArray();
let filteredUsers = await this.users.collection.find({ rank: { $lte: USERS_PER_PAGE, $gt: 0 } }).toArray();
filteredUsers = filteredUsers.sort((a, b) => b.elo - a.elo);
// ```ansi;
// Offline player
Expand Down

0 comments on commit 63f5d3b

Please sign in to comment.