Skip to content

Commit

Permalink
Corrected broken query
Browse files Browse the repository at this point in the history
  • Loading branch information
Strikeeaglechase committed Aug 22, 2024
1 parent 4f14d60 commit 4ee5539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/elo/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class Stats extends SlashCommand {
.map(entry => entry[1] + " " + Weapon[entry[0]])
.join("\n");

const endOfSeasonStats = targetSeason.active ? null : await app.endOfSeasonStats.collection.findOne({ season: targetSeason.id, user: user.id });
const endOfSeasonStats = targetSeason.active ? null : await app.endOfSeasonStats.collection.findOne({ season: targetSeason.id, userId: user.id });
const rawRank = app.getUserRank(user, targetSeason, endOfSeasonStats);
const rank = rawRank == "N/A" ? 0 : rawRank;
const playersWithRank = targetSeason.totalRankedUsers;
Expand Down

0 comments on commit 4ee5539

Please sign in to comment.