Bugfixes
This commit is contained in:
@@ -17,7 +17,7 @@ export const PATCH = defineApiRoute({
|
||||
created_at: true,
|
||||
updated_at: true
|
||||
}).merge(z.object({
|
||||
startdatum: z.coerce.date()
|
||||
startdatum: z.coerce.date().nullable()
|
||||
})),
|
||||
output: z.void(),
|
||||
headers: {
|
||||
|
||||
@@ -19,7 +19,7 @@ export const PUT = defineApiRoute({
|
||||
},
|
||||
input: z.object({
|
||||
ausweis: VerbrauchsausweisWohnenSchema.merge(z.object({
|
||||
startdatum: z.coerce.date()
|
||||
startdatum: z.coerce.date().nullable()
|
||||
})).omit({
|
||||
id: true,
|
||||
benutzer_id: true,
|
||||
|
||||
Reference in New Issue
Block a user