Bug fix for export

This commit is contained in:
2024-07-30 11:36:27 -07:00
parent 478aecf2c8
commit 1ad6246b8d
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ public class ExportController : Controller, IExportController<IActionResult>
public IActionResult GetCSVExport(int toolTypeId, [FromQuery] string? datebegin, [FromQuery] string? dateend, [FromQuery] string? filename)
{
string r = _ExportRepository.GetCSVExport(_MetrologyRepository, toolTypeId, datebegin, dateend);
return File(r, "application/octet-stream", filename);
return Content(r);
}
}