WFDASH-WEBAPP/src/app/api
SJCoetz 469b2c0460 fix(api): preserve auth status + guard pagination against NaN
- Catch block now preserves error.status so assertAgentAuth's 401
  surfaces as 401, not 500. Matches sibling /api/v1/stock-purchases
  pattern.
- page/perPage parsing falls back to documented defaults on
  non-numeric or zero input rather than passing NaN to the service.
- Add 2 tests covering the auth-status and pagination boundaries.

Co-authored-by: Orca <help@stably.ai>
2026-08-03 14:38:51 +02:00
..
invoicing feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
mcp feat: collection-map updates, todays-stops, quote/approval rework, buyer-tasks, e2e 2026-08-03 09:33:45 +02:00
v1 fix(api): preserve auth status + guard pagination against NaN 2026-08-03 14:38:51 +02:00