Added a new method for file download and correct csv is getting added.

This commit is contained in:
Owaise Imdad committed 2025-06-19 22:23:10 +05:30
1 parent e6b9b5df3c
commit a1c11fbb3c
2 files changed
+16 -2

No files matched your search

+1 -2
View File
@@ -727,8 +727,7 @@ class MonitorController {
const csv = pkg.unparse(csvData);
return res.success({
msg: this.stringService.monitorsExported,
return res.file({
data: csv,
headers: {
"Content-Type": "text/csv",