Fix validation error in export service (#10985)

Signed-off-by: Artyom Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2026-07-19 21:29:16 +07:00
committed by GitHub
parent 3cae972cf5
commit c19694b476
+2
View File
@@ -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(', ')}`)
}
}