mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01: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, | ||||
|             serializeDates(data), | ||||
|         ); | ||||
| 
 | ||||
|         const timestamp = this.getFormattedDate(Date.now()); | ||||
|         if (query.downloadFile) { | ||||
|             res.attachment(`export-${timestamp}.json`); | ||||
|         } | ||||
| 
 | ||||
|         res.json(data); | ||||
|     } | ||||
| 
 | ||||
|     private getFormattedDate(millis: number): string { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user