Skip to content

Commit bed6c40

Browse files
Renat Zubairovjhorbulyk
authored andcommitted
Proper attachment structure
1 parent 09c33bd commit bed6c40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/actions/write.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ function processAction(msg) {
4747
rowCount
4848
});
4949
const fileName = messageToEmit.id + '.csv';
50-
messageToEmit.attachments[fileName] = signedUrl.get_url;
50+
messageToEmit.attachments[fileName] = {
51+
"content-type": "text/csv",
52+
url: signedUrl.get_url
53+
};
5154
console.log('%j', messageToEmit);
5255
signedUrl = null;
5356
rowCount = 0;

0 commit comments

Comments
 (0)