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, rank: rank,
}; };
} }
}
// Sort the fallback history // Sort the fallback history
statisticHistory = Object.entries(statisticHistory) statisticHistory = Object.entries(statisticHistory)
.sort() .sort()
.reduce((obj, [key, value]) => ({ ...obj, [key]: value }), {}); .reduce((obj, [key, value]) => ({ ...obj, [key]: value }), {});
}
const yesterdayDate = formatDateMinimal( const yesterdayDate = formatDateMinimal(
getMidnightAlignedDate(getDaysAgoDate(1)), getMidnightAlignedDate(getDaysAgoDate(1)),
); );