1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-01 01:18:10 +02:00

fix: export failing because stream closed (#3104)

This commit is contained in:
Jaanus Sellin 2023-02-14 14:20:30 +02:00 committed by GitHub
parent 3977fd9487
commit c094472cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,13 +66,6 @@ class ExportImportController extends Controller {
exportResultSchema.$id, exportResultSchema.$id,
serializeDates(data), serializeDates(data),
); );
const timestamp = this.getFormattedDate(Date.now());
if (query.downloadFile) {
res.attachment(`export-${timestamp}.json`);
}
res.json(data);
} }
private getFormattedDate(millis: number): string { private getFormattedDate(millis: number): string {