From a0d75d64118075ff2c0687a52e37b1d0b8369a72 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Fri, 14 Mar 2025 01:24:24 +0100 Subject: [PATCH] Lib: Rename fetch_seasonpicks to fetch_visibleseasonpicks --- src/lib/fetch.ts | 6 +++--- src/routes/seasonpicks/+page.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/fetch.ts b/src/lib/fetch.ts index 19d872c..7d1ad04 100644 --- a/src/lib/fetch.ts +++ b/src/lib/fetch.ts @@ -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, @@ -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, ): Promise => { const seasonpicks: SeasonPick[] = await pb diff --git a/src/routes/seasonpicks/+page.ts b/src/routes/seasonpicks/+page.ts index 14feec8..2aecf9a 100644 --- a/src/routes/seasonpicks/+page.ts +++ b/src/routes/seasonpicks/+page.ts @@ -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),