disable all time until i can make fetching it faster
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 46s
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m53s

This commit is contained in:
Lee 2024-10-29 19:50:40 +00:00
parent be5f0ab780
commit a47cc3c7d8
3 changed files with 1 additions and 8 deletions

@ -93,9 +93,6 @@ export default class ScoresController {
} else if (limit > 100) {
limit = 100;
}
if ((timeframe.toLowerCase() as keyof Timeframe) === undefined) {
timeframe = "all";
}
const scores = await ScoreService.getTopScores(limit, timeframe);
return {

@ -1 +1 @@
export type Timeframe = "daily" | "weekly" | "monthly" | "all";
export type Timeframe = "daily" | "weekly" | "monthly";

@ -30,10 +30,6 @@ const timeframes: TimeframesType[] = [
timeframe: "monthly",
display: "This Month",
},
{
timeframe: "all",
display: "All Time",
},
];
type TopScoresDataProps = {