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, }); };