fix player name

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

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