From 72012983718a8d1f1d850e24e9af3a29fb20374a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 1 Aug 2024 21:09:36 +0900 Subject: refactor: remove `player_id` parameter from `/api/games` --- frontend/app/.server/api/schema.d.ts | 4 +--- frontend/app/routes/dashboard.tsx | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'frontend') diff --git a/frontend/app/.server/api/schema.d.ts b/frontend/app/.server/api/schema.d.ts index 3ef97ab..1adfc86 100644 --- a/frontend/app/.server/api/schema.d.ts +++ b/frontend/app/.server/api/schema.d.ts @@ -349,9 +349,7 @@ export interface operations { }; getGames: { parameters: { - query?: { - player_id?: number; - }; + query?: never; header: { Authorization: string; }; diff --git a/frontend/app/routes/dashboard.tsx b/frontend/app/routes/dashboard.tsx index 3cc8e13..08780f9 100644 --- a/frontend/app/routes/dashboard.tsx +++ b/frontend/app/routes/dashboard.tsx @@ -17,9 +17,6 @@ export async function loader({ request }: LoaderFunctionArgs) { } const { data, error } = await apiClient.GET("/games", { params: { - query: { - player_id: user.user_id, - }, header: { Authorization: `Bearer ${token}`, }, -- cgit v1.2.3-70-g09d2