MEGAINFRA-WEBAPP/src/app/api
DEls 0402c73a08 fix(fuel-import): send date_logged as full ISO datetime
PB's date field validator runs an internal regex that requires a
full ISO 8601 datetime (e.g. '2026-08-24T00:00:00.000Z'), not a
bare 'YYYY-MM-DD' string. The new parser returns YYYY-MM-DD which
is correct for our internal use, but the route was passing it
straight through to PB and getting rejected with:

    'The string did not match the expected pattern.'

Anchor at UTC midnight (the pump sheet is date-only) before
writing to PB. Same shape as the original route's
'new Date(date).toISOString()' output.

Triggered by importing 'The Hills Diesel 1-24 August.xlsx'
through the new xlsx route after the migration ran.
2026-08-24 22:13:17 +02:00
..
data-import-batches/[id] feat(api): add data-import-batches manual retry endpoint 2026-08-19 19:36:29 +02:00
delivery-notes/upload Enhance Dashboard and Sidebar Navigation 2026-08-19 01:54:16 +02:00
fuel-logs/import fix(fuel-import): send date_logged as full ISO datetime 2026-08-24 22:13:17 +02:00
health Refactor Purchase Order upload flow documentation 2026-08-19 02:25:11 +02:00
purchase-orders fix(api): use err.status for PB 404 detection in process-batch 2026-08-24 18:42:14 +02:00
records/[collection]/[id]/verify Enhance Dashboard and Sidebar Navigation 2026-08-19 01:54:16 +02:00
timesheets/import feat(api): mark sync imports as processed on create 2026-08-19 19:49:42 +02:00