mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Sendgrid Node): Fix issue sending attachments (#3213)
This commit is contained in:
@@ -456,8 +456,10 @@ export class SendGrid implements INodeType {
|
|||||||
|
|
||||||
const binaryProperty = items[i].binary![property];
|
const binaryProperty = items[i].binary![property];
|
||||||
|
|
||||||
|
const dataBuffer = await this.helpers.getBinaryDataBuffer(i, property);
|
||||||
|
|
||||||
attachmentsToSend.push({
|
attachmentsToSend.push({
|
||||||
content: binaryProperty.data,
|
content: dataBuffer.toString('base64'),
|
||||||
filename: binaryProperty.fileName || 'unknown',
|
filename: binaryProperty.fileName || 'unknown',
|
||||||
type: binaryProperty.mimeType,
|
type: binaryProperty.mimeType,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user