Skip to content

Commit

Permalink
vinvoor: use admin endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-dev committed Oct 3, 2024
1 parent 9623d40 commit 5a20244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vinvoor/src/hooks/admin/useAdminSeason.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ENDPOINT = "admin/seasons";
export const useAdminSeasons = () => {
return useQuery<Season[]>({
queryKey: ["adminSeasons"],
queryFn: () => getApi<Season[], SeasonJSON[]>("seasons", convertSeasonJSON),
queryFn: () => getApi<Season[], SeasonJSON[]>(ENDPOINT, convertSeasonJSON),
retry: 1,
});
};
Expand Down

0 comments on commit 5a20244

Please sign in to comment.