Skip to content

Commit

Permalink
fix: checklists patch route body parsing (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored Sep 30, 2024
1 parent b8501ff commit a289d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/api/v1/checklists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ checklists.patch(
const { projectId } = ctx.state;
const paramsSchema = z.object({ id: z.string().uuid() });
const bodySchema = z.object({
slug: z.string(),
slug: z.string().optional(),
data: z.any() as z.ZodType<CheckLogic>,
});
const { slug, data } = bodySchema.parse(ctx.request.body);
Expand Down

0 comments on commit a289d94

Please sign in to comment.