Lib: Rename fetch_seasonpicks to fetch_visibleseasonpicks
This commit is contained in:
@ -140,7 +140,7 @@ export const fetch_currentrace = async (
|
||||
};
|
||||
|
||||
/**
|
||||
* Fetch all [RacePicks] from the database
|
||||
* Fetch all visible [RacePicks] from the database
|
||||
*/
|
||||
export const fetch_visibleracepicks = async (
|
||||
fetch: (_: any) => Promise<Response>,
|
||||
@ -174,9 +174,9 @@ export const fetch_currentracepick = async (
|
||||
};
|
||||
|
||||
/**
|
||||
* Fetch all [SeasonPicks] from the database
|
||||
* Fetch all visible [SeasonPicks] from the database
|
||||
*/
|
||||
export const fetch_seasonpicks = async (
|
||||
export const fetch_visibleseasonpicks = async (
|
||||
fetch: (_: any) => Promise<Response>,
|
||||
): Promise<SeasonPick[]> => {
|
||||
const seasonpicks: SeasonPick[] = await pb
|
||||
|
@ -3,7 +3,7 @@ import {
|
||||
fetch_drivers,
|
||||
fetch_hottakes,
|
||||
fetch_seasonpickedusers,
|
||||
fetch_seasonpicks,
|
||||
fetch_visibleseasonpicks,
|
||||
fetch_teams,
|
||||
} from "$lib/fetch";
|
||||
import type { PageLoad } from "../$types";
|
||||
@ -14,7 +14,7 @@ export const load: PageLoad = async ({ fetch, depends }) => {
|
||||
return {
|
||||
teams: fetch_teams(fetch),
|
||||
drivers: fetch_drivers(fetch),
|
||||
seasonpicks: fetch_seasonpicks(fetch),
|
||||
seasonpicks: fetch_visibleseasonpicks(fetch),
|
||||
hottakes: fetch_hottakes(fetch),
|
||||
seasonpickedusers: fetch_seasonpickedusers(fetch),
|
||||
|
||||
|
Reference in New Issue
Block a user