This commit is contained in:
parent
b348969089
commit
9984b416b6
@ -60,7 +60,6 @@ async function connectWebsocket() {
|
|||||||
|
|
||||||
const {
|
const {
|
||||||
id,
|
id,
|
||||||
country,
|
|
||||||
hmd,
|
hmd,
|
||||||
baseScore,
|
baseScore,
|
||||||
missedNotes,
|
missedNotes,
|
||||||
@ -94,7 +93,7 @@ async function connectWebsocket() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Score.create(data);
|
Score.create(data);
|
||||||
const countryId = country?.toLowerCase() || "unknown";
|
const countryId = player.country?.toLowerCase() || "unknown";
|
||||||
totalCountries[countryId] = (totalCountries[countryId] || 0) + 1;
|
totalCountries[countryId] = (totalCountries[countryId] || 0) + 1;
|
||||||
totalHeadsets[hmd] = (totalHeadsets[hmd] || 0) + 1;
|
totalHeadsets[hmd] = (totalHeadsets[hmd] || 0) + 1;
|
||||||
await LeaderboardSchema.updateOne(
|
await LeaderboardSchema.updateOne(
|
||||||
|
Loading…
Reference in New Issue
Block a user