mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
🐛 Fix another issue with Postmark Trigger node
This commit is contained in:
@@ -124,12 +124,18 @@ export class PostmarkTrigger implements INodeType {
|
|||||||
const webhookData = this.getWorkflowStaticData('node');
|
const webhookData = this.getWorkflowStaticData('node');
|
||||||
const webhookUrl = this.getNodeWebhookUrl('default');
|
const webhookUrl = this.getNodeWebhookUrl('default');
|
||||||
const events = this.getNodeParameter('events') as string[];
|
const events = this.getNodeParameter('events') as string[];
|
||||||
|
|
||||||
|
if (events.includes('bounce') || events.includes('spamComplaint')) {
|
||||||
if (this.getNodeParameter('includeContent') as boolean) {
|
if (this.getNodeParameter('includeContent') as boolean) {
|
||||||
events.push('includeContent');
|
events.push('includeContent');
|
||||||
}
|
}
|
||||||
if (events.includes('open') && this.getNodeParameter('firstOpen') as boolean) {
|
}
|
||||||
|
|
||||||
|
if (events.includes('open')) {
|
||||||
|
if (this.getNodeParameter('firstOpen') as boolean) {
|
||||||
events.push('firstOpen');
|
events.push('firstOpen');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Get all webhooks
|
// Get all webhooks
|
||||||
const endpoint = `/webhooks`;
|
const endpoint = `/webhooks`;
|
||||||
|
|||||||
Reference in New Issue
Block a user