mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
🐛 fix template id type #405
This commit is contained in:
parent
6785b1ed46
commit
87eda6619f
|
@ -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