diff --git a/projects/backend/src/controller/scores.controller.ts b/projects/backend/src/controller/scores.controller.ts index eb42a17..bd3c403 100644 --- a/projects/backend/src/controller/scores.controller.ts +++ b/projects/backend/src/controller/scores.controller.ts @@ -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 { diff --git a/projects/common/src/timeframe.ts b/projects/common/src/timeframe.ts index d456ce3..213365d 100644 --- a/projects/common/src/timeframe.ts +++ b/projects/common/src/timeframe.ts @@ -1 +1 @@ -export type Timeframe = "daily" | "weekly" | "monthly" | "all"; +export type Timeframe = "daily" | "weekly" | "monthly"; diff --git a/projects/website/src/components/score/top/top-scores-data.tsx b/projects/website/src/components/score/top/top-scores-data.tsx index 82c512b..1316648 100644 --- a/projects/website/src/components/score/top/top-scores-data.tsx +++ b/projects/website/src/components/score/top/top-scores-data.tsx @@ -30,10 +30,6 @@ const timeframes: TimeframesType[] = [ timeframe: "monthly", display: "This Month", }, - { - timeframe: "all", - display: "All Time", - }, ]; type TopScoresDataProps = {