WFDASH-WEBAPP/src/app/api
Claude a4bfef123b fix(stock): return 400 (not 500) for malformed PB id in set-pricing route
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
2026-08-31 16:56:03 +02:00
..
counter feat(counter): add standalone counter order PWA 2026-08-13 09:27:20 +02:00
dashboard feat(tv): add TV dashboard + refine workflows 2026-08-13 20:55:22 +02:00
invoicing fix(orders): bill the customer quantity, not the supplier order_qty 2026-08-30 18:28:33 +02:00
mcp fix(orders): update order_number collision-checking logic 2026-08-31 01:24:56 +02:00
tv feat(tv): add TV dashboard + refine workflows 2026-08-13 20:55:22 +02:00
v1 fix(stock): return 400 (not 500) for malformed PB id in set-pricing route 2026-08-31 16:56:03 +02:00