Skip to content

Commit 6d20fc7

Browse files
committed
Await the creation of the xlsx stream writer
1 parent 64416b7 commit 6d20fc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/handlers/userDataHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default function userDataHandler() {
7676
.pipe(res);
7777
} else {
7878
res.attachment('TidepoolExport.xlsx');
79-
writeStream = dataTools.xlsxStreamWriter(res, processorConfig);
79+
writeStream = await dataTools.xlsxStreamWriter(res, processorConfig);
8080

8181
dataResponse.data
8282
.pipe(dataTools.jsonParser())

0 commit comments

Comments
 (0)