mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
🔀 Merge pull request #407 from RicardoE105/feature/mailjet-fix
🐛 fix template id type #405
This commit is contained in:
commit
3b074ef87d
|
@ -299,7 +299,7 @@ export const emailFields = [
|
|||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Template',
|
||||
displayName: 'Template ID',
|
||||
name: 'templateId',
|
||||
type: 'string',
|
||||
required: true,
|
||||
|
|
|
@ -185,7 +185,7 @@ export class Mailjet implements INodeType {
|
|||
//https://dev.mailjet.com/email/guides/send-api-v31/#use-a-template
|
||||
if (operation === 'sendTemplate') {
|
||||
const fromEmail = this.getNodeParameter('fromEmail', i) as string;
|
||||
const templateId = this.getNodeParameter('templateId', i) as string;
|
||||
const templateId = parseInt(this.getNodeParameter('templateId', i) as string, 10);
|
||||
const subject = this.getNodeParameter('subject', i) as string;
|
||||
const variables = (this.getNodeParameter('variablesUi', i) as IDataObject).variablesValues as IDataObject[];
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
|
Loading…
Reference in a new issue