mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
🐛 Map CC addresses correctly (AWS SES) (#1559)
This commit is contained in:
parent
dfeb531cc0
commit
ba4d848acc
|
@ -1125,15 +1125,9 @@ export class AwsSes implements INodeType {
|
||||||
setParameter(params, 'Destination.BccAddresses.member', additionalFields.bccAddresses as string[]);
|
setParameter(params, 'Destination.BccAddresses.member', additionalFields.bccAddresses as string[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.ccAddressesUi) {
|
if (additionalFields.ccAddresses) {
|
||||||
let ccAddresses = (additionalFields.ccAddressesUi as IDataObject).ccAddressesValues as string[];
|
setParameter(params, 'Destination.CcAddresses.member', additionalFields.ccAddresses as string[]);
|
||||||
//@ts-ignore
|
|
||||||
ccAddresses = ccAddresses.map(o => o.address);
|
|
||||||
if (ccAddresses) {
|
|
||||||
setParameter(params, 'Destination.CcAddresses.member', ccAddresses);
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
responseData = await awsApiRequestSOAP.call(this, 'email', 'POST', '/?Action=SendEmail&' + params.join('&'));
|
responseData = await awsApiRequestSOAP.call(this, 'email', 'POST', '/?Action=SendEmail&' + params.join('&'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1184,13 +1178,8 @@ export class AwsSes implements INodeType {
|
||||||
setParameter(params, 'Destination.BccAddresses.member', additionalFields.bccAddresses as string[]);
|
setParameter(params, 'Destination.BccAddresses.member', additionalFields.bccAddresses as string[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.ccAddressesUi) {
|
if (additionalFields.ccAddresses) {
|
||||||
let ccAddresses = (additionalFields.ccAddressesUi as IDataObject).ccAddressesValues as string[];
|
setParameter(params, 'Destination.CcAddresses.member', additionalFields.ccAddresses as string[]);
|
||||||
//@ts-ignore
|
|
||||||
ccAddresses = ccAddresses.map(o => o.address);
|
|
||||||
if (ccAddresses) {
|
|
||||||
setParameter(params, 'Destination.CcAddresses.member', ccAddresses);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (templateDataUi) {
|
if (templateDataUi) {
|
||||||
|
|
Loading…
Reference in a new issue