mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
⚡ Minor improvements to ActiveCampaign-Node
This commit is contained in:
@@ -142,7 +142,7 @@ export class ActiveCampaignTrigger implements INodeType {
|
||||
const webhookData = this.getWorkflowStaticData('node');
|
||||
try {
|
||||
await activeCampaignApiRequest.call(this, 'DELETE', `/api/3/webhooks/${webhookData.webhookId}`, {});
|
||||
} catch(error) {
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
delete webhookData.webhookId;
|
||||
|
||||
@@ -49,8 +49,6 @@ export async function activeCampaignApiRequest(this: IHookFunctions | IExecuteFu
|
||||
options.body = body;
|
||||
}
|
||||
|
||||
console.log(options);
|
||||
|
||||
try {
|
||||
const responseData = await this.helpers.request!(options);
|
||||
|
||||
@@ -127,7 +125,7 @@ export async function activeCampaignApiRequestAllItems(this: IHookFunctions | IE
|
||||
return returnData;
|
||||
}
|
||||
|
||||
export function activeCampaignDefaultGetAllProperties (resource: string, operation: string): INodeProperties [] {
|
||||
export function activeCampaignDefaultGetAllProperties(resource: string, operation: string): INodeProperties[] {
|
||||
return [
|
||||
{
|
||||
displayName: 'Return All',
|
||||
@@ -185,7 +183,7 @@ export function activeCampaignDefaultGetAllProperties (resource: string, operati
|
||||
},
|
||||
},
|
||||
default: true,
|
||||
description: 'When set to true a simplify version of the response will be used else the raw data will be used',
|
||||
description: 'When set to true a simplify version of the response will be used else the raw data.',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user