mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Sendy Node): Fix issue with brand id not being sent (#6530)
This commit is contained in:
committed by
कारतोफ्फेलस्क्रिप्ट™
parent
3b12864460
commit
b9e5211735
@@ -86,6 +86,11 @@ export class Sendy implements INodeType {
|
||||
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
|
||||
let brandId = null;
|
||||
if (!sendCampaign) {
|
||||
brandId = this.getNodeParameter('brandId', i) as string;
|
||||
}
|
||||
|
||||
const body: IDataObject = {
|
||||
from_name: fromName,
|
||||
from_email: fromEmail,
|
||||
@@ -96,6 +101,10 @@ export class Sendy implements INodeType {
|
||||
html_text: htmlText,
|
||||
};
|
||||
|
||||
if (brandId) {
|
||||
body.brand_id = brandId as string;
|
||||
}
|
||||
|
||||
if (additionalFields.plainText) {
|
||||
body.plain_text = additionalFields.plainText;
|
||||
}
|
||||
@@ -116,10 +125,6 @@ export class Sendy implements INodeType {
|
||||
body.exclude_segments_ids = additionalFields.excludeSegmentIds as string;
|
||||
}
|
||||
|
||||
if (additionalFields.brandId) {
|
||||
body.brand_id = additionalFields.brandId as string;
|
||||
}
|
||||
|
||||
if (additionalFields.queryString) {
|
||||
body.query_string = additionalFields.queryString as string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user