Skip to content

Commit

Permalink
fix rank calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey-wu committed Jun 27, 2023
1 parent 5e7f312 commit 1c307ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions database/geoword.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ async function getUserStats({ packetName, user_id }) {
question.rank = 1 + await buzzes.countDocuments({
packetName,
questionNumber: question._id,
division,
$or: [
{ celerity: { $gt: buzzArray[index].celerity } },
{ points: { $gt: buzzArray[index].points } },
Expand Down

0 comments on commit 1c307ab

Please sign in to comment.