fix player statistic tracking
Some checks failed
Deploy Backend / deploy (push) Has been cancelled

This commit is contained in:
Lee
2024-10-10 01:40:21 +01:00
parent 0f1c101acc
commit fc287be481
3 changed files with 10 additions and 11 deletions

View File

@ -68,7 +68,8 @@ export class PlayerService {
* @param dateToday the date to track
* @param foundPlayer the player to track
*/
public static async trackScoreSaberPlayer(dateToday: Date, foundPlayer: PlayerDocument) {
public static async trackScoreSaberPlayer(foundPlayer: PlayerDocument) {
const dateToday = getMidnightAlignedDate(new Date());
const player = await scoresaberService.lookupPlayer(foundPlayer.id);
if (player == undefined) {
console.log(`Player "${foundPlayer.id}" not found on ScoreSaber`);