From 1c307ab152a5fa7ac9022bec87f4b75677d22e9f Mon Sep 17 00:00:00 2001 From: Geoffrey Wu Date: Mon, 26 Jun 2023 22:33:27 -0400 Subject: [PATCH] fix rank calculation --- database/geoword.js | 1 + 1 file changed, 1 insertion(+) diff --git a/database/geoword.js b/database/geoword.js index 83bc58323..e75c4b6e0 100644 --- a/database/geoword.js +++ b/database/geoword.js @@ -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 } },