This commit is contained in:
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user