From 9984b416b67763be7a5236524915c09d6305d254 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 30 Oct 2023 15:33:33 +0000 Subject: [PATCH] fix country --- src/services/updateData.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/services/updateData.ts b/src/services/updateData.ts index 768d730..f6c2583 100644 --- a/src/services/updateData.ts +++ b/src/services/updateData.ts @@ -60,7 +60,6 @@ async function connectWebsocket() { const { id, - country, hmd, baseScore, missedNotes, @@ -94,7 +93,7 @@ async function connectWebsocket() { } Score.create(data); - const countryId = country?.toLowerCase() || "unknown"; + const countryId = player.country?.toLowerCase() || "unknown"; totalCountries[countryId] = (totalCountries[countryId] || 0) + 1; totalHeadsets[hmd] = (totalHeadsets[hmd] || 0) + 1; await LeaderboardSchema.updateOne(