Skip to content

Commit

Permalink
add description to events schema
Browse files Browse the repository at this point in the history
  • Loading branch information
craigkai committed Jul 31, 2024
1 parent 069cbae commit b5cd578
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/events/[slug]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
3 changes: 2 additions & 1 deletion src/schemas/supabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit b5cd578

Please sign in to comment.