song type schema stuff
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import type { SongFilters } from "$lib/db/client-db";
|
||||
import { db, ensureSeeded, getSongsWithFilters } from "$lib/db/client-db";
|
||||
import type { PageLoad } from "./$types";
|
||||
import { SearchParamsSchema } from "./schema";
|
||||
import { SearchParamsSchemaServer } from "./schema";
|
||||
|
||||
export const load: PageLoad = async ({ url, fetch, depends }) => {
|
||||
depends("clientdb:songs");
|
||||
|
||||
const parsed = SearchParamsSchema.safeParse(
|
||||
const parsed = SearchParamsSchemaServer.safeParse(
|
||||
Object.fromEntries(url.searchParams.entries()),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user