mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
Fix validation error in export service (#10985)
Signed-off-by: Artyom Savchenko <armisav@gmail.com>
This commit is contained in:
@@ -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(', ')}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user