mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
⚡ Small fix on AWS SES-Node (#1049)
This commit is contained in:
parent
d3a52297f2
commit
1e275b188d
|
@ -664,7 +664,7 @@ export class AwsSes implements INodeType {
|
|||
}
|
||||
}
|
||||
|
||||
responseData = await awsApiRequestSOAP.call(this, 'email', 'POST', '/?Action=send&' + params.join('&'));
|
||||
responseData = await awsApiRequestSOAP.call(this, 'email', 'POST', '/?Action=SendEmail&' + params.join('&'));
|
||||
}
|
||||
|
||||
if (operation === 'sendTemplate') {
|
||||
|
@ -726,11 +726,13 @@ export class AwsSes implements INodeType {
|
|||
if (templateDataUi) {
|
||||
const templateDataValues = (templateDataUi as IDataObject).templateDataValues as IDataObject[];
|
||||
const templateData: IDataObject = {};
|
||||
for (const key of Object.keys(templateDataValues)) {
|
||||
//@ts-ignore
|
||||
templateData[key]= templateDataValues[key];
|
||||
if (templateDataValues !== undefined) {
|
||||
for (const key of Object.keys(templateDataValues)) {
|
||||
//@ts-ignore
|
||||
templateData[key]= templateDataValues[key];
|
||||
}
|
||||
params.push(`TemplateData=${JSON.stringify(templateData)}`);
|
||||
}
|
||||
params.push(`TemplateData=${JSON.stringify(templateData)}`);
|
||||
}
|
||||
|
||||
responseData = await awsApiRequestSOAP.call(this, 'email', 'POST', '/?Action=SendTemplatedEmail&' + params.join('&'));
|
||||
|
|
Loading…
Reference in a new issue