Added update route for event

This commit is contained in:
Alexis
2024-06-04 12:01:19 +02:00
parent 9802266b8c
commit 5f6a8e46c6
4 changed files with 91 additions and 6 deletions

View File

@@ -20,9 +20,9 @@ export interface CalendarEvent {
export const postEventBodySchema = z.object({
event: z.object({
title: z.string(),
description: z.string().optional(),
description: z.string().optional().nullable(),
startDate: dateSchema.required(),
endDate: dateSchema.optional()
endDate: dateSchema.optional().nullable()
}),
calendarId: z.number().int().positive()
})