mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Extracted the export route's format/cap/column-whitelist branching out of the controller into pure functions (resolveExportFormat, resolveExportCap, resolveExportColumns) and added a spec: unknown format falls back to xlsx, limit clamps to the format cap and ignores non-positive/NaN input, unknown field keys are dropped and an all-unknown fields list falls back to every column instead of shipping a blank sheet. Was untested branching logic before this.