fix player name

This commit is contained in:
Lee 2024-10-29 14:17:33 +00:00
parent 3a2a876f74
commit 67c4865697

View File

@ -189,9 +189,12 @@ export class ScoreService {
if (player == undefined) {
return;
}
// Update player name
player.name = playerName;
await player.save();
if (playerName !== "Unknown") {
player.name = playerName;
await player.save();
}
// The score has already been tracked, so ignore it.
if (
@ -488,8 +491,6 @@ export class ScoreService {
const score = getScoreSaberScoreFromToken(token.score, leaderboard, playerId);
if (!score) return undefined;
console.log("boobs");
// Fetch additional data, previous score, and BeatSaver map concurrently
const [additionalData, previousScore, beatSaverMap] = await Promise.all([
this.getAdditionalScoreData(