* Add company resource to Mautic

*  Add company resource

*  Small improvement

* Tweak descriptions/ labels

Added descriptions for resources + fixed a spelling mistake (all just editing "description" fields, nothing else)

* 👕 Fix lint issue

Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: maxtkacz <maxtkacz@gmail.com>
This commit is contained in:
Jan
2020-10-23 09:31:32 +02:00
committed by GitHub
parent 7addd14e36
commit ada485ed5c
6 changed files with 667 additions and 49 deletions

View File

@@ -92,7 +92,8 @@ export class MauticTrigger implements INodeType {
loadOptionsMethod: 'getEvents',
},
default: [],
}, {
},
{
displayName: 'Events Order',
name: 'eventsOrder',
type: 'options',
@@ -170,7 +171,7 @@ export class MauticTrigger implements INodeType {
const webhookData = this.getWorkflowStaticData('node');
try {
await mauticApiRequest.call(this, 'DELETE', `/hooks/${webhookData.webhookId}/delete`);
} catch(error) {
} catch (error) {
return false;
}
delete webhookData.webhookId;