Leaderboard: Fetch points data

This commit is contained in:
2025-03-23 17:16:51 +01:00
parent ce2c7af35c
commit 7fb38874d9

View File

@ -0,0 +1,12 @@
import { fetch_users, fetch_racepickpoints, fetch_racepickpointsacc } from "$lib/fetch";
import type { PageLoad } from "../$types";
export const load: PageLoad = async ({ fetch, depends }) => {
depends("data:users", "data:raceresults");
return {
users: fetch_users(fetch),
racepickpoints: fetch_racepickpoints(fetch),
racepickpointsacc: fetch_racepickpointsacc(fetch),
};
};