make newPayment field optional while updating permit

This commit is contained in:
2025-04-07 13:44:02 +05:30
parent ec611de87e
commit e8d49f1f4a

View File

@@ -133,7 +133,7 @@ const updatePermitInput = z.object({
.nullable() .nullable()
.optional(), .optional(),
assignedTo: z.string().optional(), assignedTo: z.string().optional(),
newPayment: z.array(z.any()), newPayment: z.array(z.any()).optional(),
}); });
export type CreatePermitInput = z.infer<typeof createPermitInput>; export type CreatePermitInput = z.infer<typeof createPermitInput>;