Lib: Rename fetch_seasonpicks to fetch_visibleseasonpicks

This commit is contained in:
2025-03-14 01:24:24 +01:00
parent 8ee212bbf3
commit a0d75d6411
2 changed files with 5 additions and 5 deletions

View File

@ -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 ( export const fetch_visibleracepicks = async (
fetch: (_: any) => Promise<Response>, 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>, fetch: (_: any) => Promise<Response>,
): Promise<SeasonPick[]> => { ): Promise<SeasonPick[]> => {
const seasonpicks: SeasonPick[] = await pb const seasonpicks: SeasonPick[] = await pb

View File

@ -3,7 +3,7 @@ import {
fetch_drivers, fetch_drivers,
fetch_hottakes, fetch_hottakes,
fetch_seasonpickedusers, fetch_seasonpickedusers,
fetch_seasonpicks, fetch_visibleseasonpicks,
fetch_teams, fetch_teams,
} from "$lib/fetch"; } from "$lib/fetch";
import type { PageLoad } from "../$types"; import type { PageLoad } from "../$types";
@ -14,7 +14,7 @@ export const load: PageLoad = async ({ fetch, depends }) => {
return { return {
teams: fetch_teams(fetch), teams: fetch_teams(fetch),
drivers: fetch_drivers(fetch), drivers: fetch_drivers(fetch),
seasonpicks: fetch_seasonpicks(fetch), seasonpicks: fetch_visibleseasonpicks(fetch),
hottakes: fetch_hottakes(fetch), hottakes: fetch_hottakes(fetch),
seasonpickedusers: fetch_seasonpickedusers(fetch), seasonpickedusers: fetch_seasonpickedusers(fetch),