From 5a2024424f1d46fdf38ceb32858dbfd12f4caa8d Mon Sep 17 00:00:00 2001 From: Hannes Klinckaert Date: Thu, 3 Oct 2024 09:58:55 +0200 Subject: [PATCH] vinvoor: use admin endpoint --- vinvoor/src/hooks/admin/useAdminSeason.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vinvoor/src/hooks/admin/useAdminSeason.ts b/vinvoor/src/hooks/admin/useAdminSeason.ts index b9fe6d2..bc6fbab 100644 --- a/vinvoor/src/hooks/admin/useAdminSeason.ts +++ b/vinvoor/src/hooks/admin/useAdminSeason.ts @@ -8,7 +8,7 @@ const ENDPOINT = "admin/seasons"; export const useAdminSeasons = () => { return useQuery({ queryKey: ["adminSeasons"], - queryFn: () => getApi("seasons", convertSeasonJSON), + queryFn: () => getApi(ENDPOINT, convertSeasonJSON), retry: 1, }); };