fix player name
This commit is contained in:
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
|
||||||
player.name = playerName;
|
if (playerName !== "Unknown") {
|
||||||
await player.save();
|
player.name = playerName;
|
||||||
|
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(
|
||||||
|
Reference in New Issue
Block a user