update lgo
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 41s
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 41s
This commit is contained in:
parent
e146d20f4f
commit
c58f24103f
@ -175,6 +175,7 @@ export class ScoreService {
|
|||||||
playerId?: string
|
playerId?: string
|
||||||
) {
|
) {
|
||||||
playerId = playerId || scoreToken.leaderboardPlayerInfo.id;
|
playerId = playerId || scoreToken.leaderboardPlayerInfo.id;
|
||||||
|
const playerName = scoreToken.leaderboardPlayerInfo.name;
|
||||||
|
|
||||||
const leaderboard = getScoreSaberLeaderboardFromToken(leaderboardToken);
|
const leaderboard = getScoreSaberLeaderboardFromToken(leaderboardToken);
|
||||||
const score = getScoreSaberScoreFromToken(scoreToken, leaderboard, playerId);
|
const score = getScoreSaberScoreFromToken(scoreToken, leaderboard, playerId);
|
||||||
@ -202,7 +203,9 @@ export class ScoreService {
|
|||||||
delete score.playerInfo;
|
delete score.playerInfo;
|
||||||
|
|
||||||
await ScoreSaberScoreModel.create(score);
|
await ScoreSaberScoreModel.create(score);
|
||||||
console.log(`Tracked ScoreSaber score for ${playerId}, difficulty: ${score.difficulty}, score: ${score.score}`);
|
console.log(
|
||||||
|
`Tracked ScoreSaber score for "${playerName}"(${playerId}), difficulty: ${score.difficulty}, score: ${score.score}, pp: ${score.pp.toFixed(2)}pp, leaderboard: ${leaderboard.id}`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user