mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(Sendgrid Node): Fix issue sending attachments (#3213)
This commit is contained in:
parent
8d9e05e3c3
commit
2b008815ca
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue