Data/Season: Add comment
This commit is contained in:
@ -3,6 +3,7 @@ import type { LayoutServerLoad } from "./$types";
|
|||||||
|
|
||||||
// This "load" function runs serverside only, as it's located inside +layout.server.ts
|
// This "load" function runs serverside only, as it's located inside +layout.server.ts
|
||||||
export const load: LayoutServerLoad = async ({ fetch, locals }) => {
|
export const load: LayoutServerLoad = async ({ fetch, locals }) => {
|
||||||
|
// TODO: Duplicated code from racepicks/+page.server.ts
|
||||||
const fetch_graphics = async (): Promise<Graphic[]> => {
|
const fetch_graphics = async (): Promise<Graphic[]> => {
|
||||||
const graphics: Graphic[] = await locals.pb
|
const graphics: Graphic[] = await locals.pb
|
||||||
.collection("graphics")
|
.collection("graphics")
|
||||||
|
|||||||
Reference in New Issue
Block a user