Improvements

This commit is contained in:
ricardo
2020-08-10 09:41:10 -04:00
parent 833001a9e4
commit b3a8587106
4 changed files with 40 additions and 38 deletions

View File

@@ -297,6 +297,8 @@ export class ConvertKitTrigger implements INodeType {
},
};
console.log(event);
if (event === 'subscriber.form_subscribe') {
//@ts-ignore
body.event['form_id'] = this.getNodeParameter('formId', 0);
@@ -317,7 +319,7 @@ export class ConvertKitTrigger implements INodeType {
body.event['product_id'] = this.getNodeParameter('productId', 0);
}
if (event === 'subscriber.tag_add' || event === 'subscriber.tag_remove"') {
if (event === 'subscriber.tag_add' || event === 'subscriber.tag_remove') {
//@ts-ignore
body.event['tag_id'] = this.getNodeParameter('tagId', 0);
}