Added a new method for file download and correct csv is getting added.
This commit is contained in:
1 parent
e6b9b5df3c
commit
a1c11fbb3c
2 files changed
+16
-2
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user