fix player name
This commit is contained in:
parent
3a2a876f74
commit
67c4865697
@ -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(
|
||||
|
Reference in New Issue
Block a user