disable all time until i can make fetching it faster
This commit is contained in:
parent
be5f0ab780
commit
a47cc3c7d8
@ -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 = {
|
||||
|
Reference in New Issue
Block a user