Skip to content

Commit

Permalink
feat: xls export for projects and units finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeen committed Jan 23, 2022
1 parent 853f0ce commit cd55335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/xls.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const sendXls = (name, bytes, response) => {
const readStream = new stream.PassThrough();
readStream.end(bytes);

response.set('Content-disposition', 'attachment; filename=' + name + '.xls');
response.set('Content-disposition', 'attachment; filename=' + name + 's' + '.xlsx');
response.set('Content-Type', 'text/plain');

readStream.pipe(response);
Expand Down

0 comments on commit cd55335

Please sign in to comment.