fix issue with stat tracking
Some checks failed
Deploy Backend / deploy (push) Has been cancelled

This commit is contained in:
Lee 2024-10-16 11:36:06 +01:00
parent 2367a03516
commit 24a15f97d1

@ -133,6 +133,7 @@ export class PlayerService {
foundPlayer.setStatisticHistory(dateToday, history); foundPlayer.setStatisticHistory(dateToday, history);
foundPlayer.sortStatisticHistory(); foundPlayer.sortStatisticHistory();
foundPlayer.lastTracked = new Date(); foundPlayer.lastTracked = new Date();
foundPlayer.markModified("statisticHistory");
await foundPlayer.save(); await foundPlayer.save();
console.log(`Tracked player "${foundPlayer.id}"!`); console.log(`Tracked player "${foundPlayer.id}"!`);