Fix issue with Postmark Trigger node

This commit is contained in:
Jan Oberhauser 2020-09-14 12:59:52 +02:00
parent 397132688e
commit 5cb1837ea9

View file

@ -127,7 +127,7 @@ export class PostmarkTrigger implements INodeType {
if (this.getNodeParameter('includeContent') as boolean) { if (this.getNodeParameter('includeContent') as boolean) {
events.push('includeContent'); events.push('includeContent');
} }
if (this.getNodeParameter('firstOpen') as boolean) { if (events.includes('open') && this.getNodeParameter('firstOpen') as boolean) {
events.push('firstOpen'); events.push('firstOpen');
} }