mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-11 01:28:58 +03:00
🐛 Fix bug in Zendesk Trigger node with wrong conditions (#1668)
This commit is contained in:
parent
e46242faf5
commit
c80b0ebfd9
@ -442,11 +442,11 @@ export class ZendeskTrigger implements INodeType {
|
||||
const conditionsAll = conditions.all as [IDataObject];
|
||||
|
||||
let endpoint = '';
|
||||
const aux: IDataObject = {};
|
||||
const resultAll = [], resultAny = [];
|
||||
|
||||
if (conditionsAll) {
|
||||
for (const conditionAll of conditionsAll) {
|
||||
const aux: IDataObject = {};
|
||||
aux.field = conditionAll.field;
|
||||
aux.operator = conditionAll.operation;
|
||||
if (conditionAll.operation !== 'changed'
|
||||
@ -462,6 +462,7 @@ export class ZendeskTrigger implements INodeType {
|
||||
const conditionsAny = conditions.any as [IDataObject];
|
||||
if (conditionsAny) {
|
||||
for (const conditionAny of conditionsAny) {
|
||||
const aux: IDataObject = {};
|
||||
aux.field = conditionAny.field;
|
||||
aux.operator = conditionAny.operation;
|
||||
if (conditionAny.operation !== 'changed'
|
||||
@ -510,7 +511,6 @@ export class ZendeskTrigger implements INodeType {
|
||||
const webhookData = this.getWorkflowStaticData('node');
|
||||
const service = this.getNodeParameter('service') as string;
|
||||
if (service === 'support') {
|
||||
const aux: IDataObject = {};
|
||||
const message: IDataObject = {};
|
||||
const resultAll = [], resultAny = [];
|
||||
const conditions = this.getNodeParameter('conditions') as IDataObject;
|
||||
@ -530,6 +530,7 @@ export class ZendeskTrigger implements INodeType {
|
||||
const conditionsAll = conditions.all as [IDataObject];
|
||||
if (conditionsAll) {
|
||||
for (const conditionAll of conditionsAll) {
|
||||
const aux: IDataObject = {};
|
||||
aux.field = conditionAll.field;
|
||||
aux.operator = conditionAll.operation;
|
||||
if (conditionAll.operation !== 'changed'
|
||||
@ -544,6 +545,7 @@ export class ZendeskTrigger implements INodeType {
|
||||
const conditionsAny = conditions.any as [IDataObject];
|
||||
if (conditionsAny) {
|
||||
for (const conditionAny of conditionsAny) {
|
||||
const aux: IDataObject = {};
|
||||
aux.field = conditionAny.field;
|
||||
aux.operator = conditionAny.operation;
|
||||
if (conditionAny.operation !== 'changed'
|
||||
|
Loading…
Reference in New Issue
Block a user