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