fix last tracked date not being updated
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
Lee 2024-10-01 09:52:36 +01:00
parent c79c5fa4f2
commit fd57a97712
2 changed files with 3 additions and 2 deletions

@ -111,6 +111,7 @@ export async function trackScoreSaberPlayer(dateToday: Date, foundPlayer: IPlaye
history.rank = player.rank;
foundPlayer.setStatisticHistory(dateToday, history);
foundPlayer.sortStatisticHistory();
foundPlayer.lastTracked = new Date();
await foundPlayer.save();
io && (await io.logger.info(`Updated statistics for ${foundPlayer.id}`));

@ -13,9 +13,9 @@ import ScoreSaberPlayer from "@/common/model/player/impl/scoresaber-player";
type Props = {
/**
* The claimed player
* The player who set the score.
*/
player: ScoreSaberPlayer;
player?: ScoreSaberPlayer;
/**
* The score to display.