fix: Add description field to personal contacts

- Add description to Zod validation schema
- Add description to controller normalizePayload function

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
richardtekula
2026-01-15 10:34:35 +01:00
parent 2a9377ce3d
commit 3e8cd7b6ce
5 changed files with 2563 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ const createContactSchema = z.object({
email: z.string().email('Neplatný email'),
secondaryEmail: z.union([z.string().email('Neplatný email'), z.literal('')]).optional(),
companyId: z.union([z.string().uuid(), z.literal(''), z.null()]).optional(),
description: z.union([z.string().max(1000), z.literal(''), z.null()]).optional(),
})
const updateContactSchema = createContactSchema.partial()