🐛 Fix AWS SES template bug #1060 (#1062)

This commit is contained in:
Ricardo Espinoza 2020-10-15 17:07:26 -04:00 committed by GitHub
parent ea328e56cd
commit 46ccff98cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -727,9 +727,9 @@ export class AwsSes implements INodeType {
const templateDataValues = (templateDataUi as IDataObject).templateDataValues as IDataObject[];
const templateData: IDataObject = {};
if (templateDataValues !== undefined) {
for (const key of Object.keys(templateDataValues)) {
for (const templateDataValue of templateDataValues) {
//@ts-ignore
templateData[key]= templateDataValues[key];
templateData[templateDataValue.key] = templateDataValue.value;
}
params.push(`TemplateData=${JSON.stringify(templateData)}`);
}