mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
👕 Fix lint issue
This commit is contained in:
parent
cb325e5892
commit
04fcdad549
|
@ -4,12 +4,12 @@ import {
|
||||||
} from 'n8n-core';
|
} from 'n8n-core';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
INodeTypeDescription,
|
|
||||||
INodeType,
|
|
||||||
IWebhookResponseData,
|
|
||||||
IDataObject,
|
IDataObject,
|
||||||
INodePropertyOptions,
|
|
||||||
ILoadOptionsFunctions,
|
ILoadOptionsFunctions,
|
||||||
|
INodeType,
|
||||||
|
INodeTypeDescription,
|
||||||
|
INodePropertyOptions,
|
||||||
|
IWebhookResponseData,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -124,8 +124,8 @@ export class ActiveCampaignTrigger implements INodeType {
|
||||||
async create(this: IHookFunctions): Promise<boolean> {
|
async create(this: IHookFunctions): Promise<boolean> {
|
||||||
const webhookUrl = this.getNodeWebhookUrl('default') as string;
|
const webhookUrl = this.getNodeWebhookUrl('default') as string;
|
||||||
const webhookData = this.getWorkflowStaticData('node');
|
const webhookData = this.getWorkflowStaticData('node');
|
||||||
const events = this.getNodeParameter('events', 0) as string[];
|
const events = this.getNodeParameter('events', []) as string[];
|
||||||
const sources = this.getNodeParameter('sources', 0) as string[];
|
const sources = this.getNodeParameter('sources', '') as string[];
|
||||||
const body: IDataObject = {
|
const body: IDataObject = {
|
||||||
webhook: {
|
webhook: {
|
||||||
name: `n8n-webhook:${webhookUrl}`,
|
name: `n8n-webhook:${webhookUrl}`,
|
||||||
|
@ -133,7 +133,7 @@ export class ActiveCampaignTrigger implements INodeType {
|
||||||
events,
|
events,
|
||||||
sources,
|
sources,
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
const { webhook } = await activeCampaignApiRequest.call(this, 'POST', '/api/3/webhooks', body);
|
const { webhook } = await activeCampaignApiRequest.call(this, 'POST', '/api/3/webhooks', body);
|
||||||
webhookData.webhookId = webhook.id;
|
webhookData.webhookId = webhook.id;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue