diff --git a/services/export/pod-export/src/server.ts b/services/export/pod-export/src/server.ts index 48583268765..b0dae8fc4cb 100644 --- a/services/export/pod-export/src/server.ts +++ b/services/export/pod-export/src/server.ts @@ -270,6 +270,8 @@ function toSafeFormatFileToken (format: ExportFormat): 'json' | 'csv' { return 'json' case ExportFormat.CSV: return 'csv' + default: + throw new ApiError(400, `Invalid format. Supported formats: ${supportedExportFormats.join(', ')}`) } }