fix last tracked date not being updated
Some checks failed
Deploy / deploy (push) Has been cancelled
Some checks failed
Deploy / deploy (push) Has been cancelled
This commit is contained in:
parent
c79c5fa4f2
commit
fd57a97712
@ -111,6 +111,7 @@ export async function trackScoreSaberPlayer(dateToday: Date, foundPlayer: IPlaye
|
|||||||
history.rank = player.rank;
|
history.rank = player.rank;
|
||||||
foundPlayer.setStatisticHistory(dateToday, history);
|
foundPlayer.setStatisticHistory(dateToday, history);
|
||||||
foundPlayer.sortStatisticHistory();
|
foundPlayer.sortStatisticHistory();
|
||||||
|
foundPlayer.lastTracked = new Date();
|
||||||
await foundPlayer.save();
|
await foundPlayer.save();
|
||||||
|
|
||||||
io && (await io.logger.info(`Updated statistics for ${foundPlayer.id}`));
|
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 = {
|
type Props = {
|
||||||
/**
|
/**
|
||||||
* The claimed player
|
* The player who set the score.
|
||||||
*/
|
*/
|
||||||
player: ScoreSaberPlayer;
|
player?: ScoreSaberPlayer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The score to display.
|
* The score to display.
|
||||||
|
Reference in New Issue
Block a user