Code-review feedback from Task 4: the verbatim plan source had a
`throw new Error(...)` inside the per-row .map() that escaped
synchronously as an HTTP 500 instead of the structured 400 envelope
the rest of the route uses for validation errors. Swap .map() for a
for-of loop that returns the structured 400.
Verified:
- Bad id → 400 {code: "validation_error", ...}
- Happy path → 200 unchanged
|
||
|---|---|---|
| .. | ||
| counter | ||
| dashboard | ||
| invoicing | ||
| mcp | ||
| tv | ||
| v1 | ||