fix country
All checks were successful
deploy / deploy (push) Successful in 29s

This commit is contained in:
Lee 2023-10-30 15:33:33 +00:00
parent b348969089
commit 9984b416b6

@ -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(