always sort the history
Some checks are pending
Deploy / deploy (push) Waiting to run

This commit is contained in:
Lee 2024-09-30 07:53:32 +01:00
parent 487d0dc7b2
commit d1f5c4c1d6

@ -118,12 +118,11 @@ export async function getScoreSaberPlayerFromToken(
rank: rank,
};
}
// Sort the fallback history
statisticHistory = Object.entries(statisticHistory)
.sort()
.reduce((obj, [key, value]) => ({ ...obj, [key]: value }), {});
}
// Sort the fallback history
statisticHistory = Object.entries(statisticHistory)
.sort()
.reduce((obj, [key, value]) => ({ ...obj, [key]: value }), {});
const yesterdayDate = formatDateMinimal(
getMidnightAlignedDate(getDaysAgoDate(1)),
);