diff --git a/src/routes/events/[slug]/+page.server.ts b/src/routes/events/[slug]/+page.server.ts index 5b3058d..6683837 100644 --- a/src/routes/events/[slug]/+page.server.ts +++ b/src/routes/events/[slug]/+page.server.ts @@ -42,7 +42,7 @@ export const actions: Actions = { const parsedData = eventsUpdateSchema.parse(updatedTournament); // Update the form data with the parsed and updated values - form.data = parsedData; + form.data = parsedData as typeof form.data; return { form }; diff --git a/src/schemas/supabase.ts b/src/schemas/supabase.ts index 405ba34..5117aa1 100644 --- a/src/schemas/supabase.ts +++ b/src/schemas/supabase.ts @@ -37,7 +37,8 @@ export const eventsInsertSchema = z.object({ owner: z.string(), pools: z.number().optional().nullable(), refs: z.string().optional().nullable(), - scoring: z.string().optional().nullable() + scoring: z.string().optional().nullable(), + description: z.string().optional() }); export const eventsUpdateSchema = z.object({