fix scores set today
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 46s
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m23s

This commit is contained in:
Lee 2024-10-22 18:46:57 +01:00
parent 6495db7588
commit a33c1b81b7

@ -116,13 +116,16 @@ export async function getScoreSaberPlayerFromToken(
pp: token.pp, pp: token.pp,
replaysWatched: token.scoreStats.replaysWatched, replaysWatched: token.scoreStats.replaysWatched,
accuracy: { accuracy: {
...history[todayDate]?.accuracy,
averageRankedAccuracy: token.scoreStats.averageRankedAccuracy, averageRankedAccuracy: token.scoreStats.averageRankedAccuracy,
}, },
scores: { scores: {
...history[todayDate]?.scores,
totalScores: token.scoreStats.totalPlayCount, totalScores: token.scoreStats.totalPlayCount,
totalRankedScores: token.scoreStats.rankedPlayCount, totalRankedScores: token.scoreStats.rankedPlayCount,
}, },
score: { score: {
...history[todayDate]?.score,
totalScore: token.scoreStats.totalScore, totalScore: token.scoreStats.totalScore,
totalRankedScore: token.scoreStats.totalRankedScore, totalRankedScore: token.scoreStats.totalRankedScore,
}, },