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:
parent
3977fd9487
commit
c094472cfe
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user