Skip to content

Commit

Permalink
fix(Sendgrid Node): Fix issue sending attachments (#3213)
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoE105 authored Apr 28, 2022
1 parent 8d9e05e commit 2b00881
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nodes-base/nodes/SendGrid/SendGrid.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,10 @@ export class SendGrid implements INodeType {

const binaryProperty = items[i].binary![property];

const dataBuffer = await this.helpers.getBinaryDataBuffer(i, property);

attachmentsToSend.push({
content: binaryProperty.data,
content: dataBuffer.toString('base64'),
filename: binaryProperty.fileName || 'unknown',
type: binaryProperty.mimeType,
});
Expand Down

0 comments on commit 2b00881

Please sign in to comment.