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). |
||
|---|---|---|
| .. | ||
| route.ts | ||