From fdb00f6b6e15b224691c09c11963e48da8ce6336 Mon Sep 17 00:00:00 2001 From: Yocto Date: Thu, 26 Dec 2024 02:13:11 -0700 Subject: [PATCH] Test --- api/src/stats/stats.dto.ts | 2 +- client/src/ui/GlobalLeaderboard.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/stats/stats.dto.ts b/api/src/stats/stats.dto.ts index 76a49bed..bf0c3a3d 100644 --- a/api/src/stats/stats.dto.ts +++ b/api/src/stats/stats.dto.ts @@ -35,5 +35,5 @@ export class FetchStatsDTO { @IsEnum(TimeRange) timeRange: TimeRange; - @Min(0) @Max(1000) limit: number; + @Min(0) @Max(200) limit: number; } diff --git a/client/src/ui/GlobalLeaderboard.tsx b/client/src/ui/GlobalLeaderboard.tsx index a1f59c8d..fc563707 100644 --- a/client/src/ui/GlobalLeaderboard.tsx +++ b/client/src/ui/GlobalLeaderboard.tsx @@ -35,7 +35,7 @@ export function GlobalLeaderboard() { api.post(url, { sortBy: type.startsWith('total') ? type.slice(6) : type, timeRange: range, - limit: 1000, + limit: 200, }, (data: any) => setData(!data.message ? data : [])); }; const changeType = (type: string) => {