diff options
author | Bryan Mutai <mutaiwork@gmail.com> | 2020-05-26 22:56:47 +0300 |
---|---|---|
committer | Bryan Mutai <mutaiwork@gmail.com> | 2020-05-27 01:23:31 +0300 |
commit | 8c149da9e920de3c1c15119030d24b0752769cfc (patch) | |
tree | 9f7fe1dd46d2dda6fc6e3f3d57ad2ba4f96e06be /models/export.js | |
parent | 18eafe2fec9368c551a944ecff3354d4339b2c11 (diff) | |
download | wekan-8c149da9e920de3c1c15119030d24b0752769cfc.tar.gz wekan-8c149da9e920de3c1c15119030d24b0752769cfc.tar.bz2 wekan-8c149da9e920de3c1c15119030d24b0752769cfc.zip |
Fix vote export to CSV/TSV & export currency custom field.
Diffstat (limited to 'models/export.js')
-rw-r--r-- | models/export.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/export.js b/models/export.js index c3783679..9dd03a38 100644 --- a/models/export.js +++ b/models/export.js @@ -85,10 +85,10 @@ if (Meteor.isServer) { ? exporter.buildCsv(params.query.delimiter) : exporter.buildCsv(); res.writeHead(200, { - 'Content-Length': body[0].length, + 'Content-Length': body.length, 'Content-Type': params.query.delimiter ? 'text/csv' : 'text/tsv', }); - res.write(body[0]); + res.write(body); res.end(); } else { res.writeHead(403); |