wulf-pulse/app/api/data
lorentz d56db023be fix(14): cast companies-list id to Number to match resolve route's z.number() schema
companies.id is BIGINT and node-postgres serializes it as a string. The
manual-search fallback (D-05) fetches from this route and sends the id
straight through to POST /company-matches/[id]/resolve, whose Zod schema
requires a JS number with no coercion — every manual-search resolution was
rejected with 400. Every other PAX8 route in this phase already casts
bigint columns via Number(); this route was the one omission.

Found by code review (14-REVIEW.md, CR-01).
2026-07-11 15:16:38 -04:00
..
billing-items Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
companies Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
companies-list fix(14): cast companies-list id to Number to match resolve route's z.number() schema 2026-07-11 15:16:38 -04:00
company-categories feat: Display Settings UI + Company Category/Type sync 2026-04-06 09:03:19 -04:00
configuration-items Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
contacts Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
contracts feat: Morning NOC Summary adaptive card for Teams 2026-03-11 09:34:51 -04:00
issue-types Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
lookups feat: Autotask webhook integration, TicketNotes, Datto RMM, workflow engine, Veeam agents/alarms, AI triage, misc improvements 2026-02-20 10:28:15 -05:00
projects Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
resources Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
sub-issue-types Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
sub-issue-types-with-parent Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
tasks Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
ticket-notes feat: Autotask webhook integration, TicketNotes, Datto RMM, workflow engine, Veeam agents/alarms, AI triage, misc improvements 2026-02-20 10:28:15 -05:00
tickets Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
tickets-with-issue-types Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00
time-entries Add comprehensive admin features and multi-system integration 2025-11-19 14:18:16 -05:00