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

@@ -8,6 +8,7 @@ const normalizePayload = (body) => ({
email: body.email?.trim(),
secondaryEmail: body.secondaryEmail?.trim() || null,
companyId: body.companyId || null,
description: body.description?.trim() || null,
})
export const listPersonalContacts = async (req, res, next) => {