I THINK I FIXED IT
All checks were successful
Deploy / deploy (push) Successful in 2m41s

This commit is contained in:
Lee 2024-09-28 06:43:27 +01:00
parent 963faa23f3
commit 6079f8228c
2 changed files with 2 additions and 2 deletions

@ -108,7 +108,7 @@ export async function getScoreSaberPlayerFromToken(
const date = getMidnightAlignedDate(getDaysAgoDate(daysAgo));
daysAgo += 1; // Increment daysAgo for each earlier rank
statisticHistory[date.toString()] = {
statisticHistory[formatDateMinimal(date)] = {
rank: rank,
};
}

@ -115,7 +115,7 @@ PlayerSchema.methods.sortStatisticHistory = function (): Map<
Date.parse(b[0]) - Date.parse(a[0]),
)
// Convert the date strings back to Date objects for the resulting Map
.map(([date, history]) => [new Date(date).toUTCString(), history]),
.map(([date, history]) => [formatDateMinimal(new Date(date)), history]),
);
return this.statisticHistory;
};