mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
encodes params for updating templates
This commit is contained in:
parent
d6763af1ad
commit
f7abb1b637
|
@ -1258,18 +1258,24 @@ export class AwsSes implements INodeType {
|
||||||
|
|
||||||
const updateFields = this.getNodeParameter('updateFields', i);
|
const updateFields = this.getNodeParameter('updateFields', i);
|
||||||
|
|
||||||
const params = [`Template.TemplateName=${templateName}`];
|
const params = [`Template.TemplateName=${encodeURIComponent(templateName)}`];
|
||||||
|
|
||||||
if (updateFields.textPart) {
|
if (updateFields.textPart) {
|
||||||
params.push(`Template.TextPart=${updateFields.textPart}`);
|
params.push(
|
||||||
|
`Template.TextPart=${encodeURIComponent(updateFields.textPart as string)}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (updateFields.subjectPart) {
|
if (updateFields.subjectPart) {
|
||||||
params.push(`Template.SubjectPart=${updateFields.subjectPart}`);
|
params.push(
|
||||||
|
`Template.SubjectPart=${encodeURIComponent(updateFields.subjectPart as string)}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (updateFields.subjectPart) {
|
if (updateFields.subjectPart) {
|
||||||
params.push(`Template.HtmlPart=${updateFields.htmlPart}`);
|
params.push(
|
||||||
|
`Template.HtmlPart=${encodeURIComponent(updateFields.htmlPart as string)}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
responseData = await awsApiRequestSOAP.call(
|
responseData = await awsApiRequestSOAP.call(
|
||||||
|
|
Loading…
Reference in a new issue