From 2adab4078142954c3c0b0a496b8800b13612efcb Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Thu, 23 Oct 2025 16:25:09 +0200 Subject: [PATCH] fix: Use IF node typeVersion 1 for better compatibility - Changed from typeVersion 2 to typeVersion 1 - typeVersion 1 is supported in older n8n versions - Should fix 'custom node' installation error --- v4/n8n-workflow-simple.json | 68 +++++++------------------------------ 1 file changed, 12 insertions(+), 56 deletions(-) diff --git a/v4/n8n-workflow-simple.json b/v4/n8n-workflow-simple.json index 3e109b1..c1fced4 100644 --- a/v4/n8n-workflow-simple.json +++ b/v4/n8n-workflow-simple.json @@ -64,41 +64,19 @@ }, { "parameters": { - "rules": { - "values": [ + "conditions": { + "boolean": [ { - "conditions": { - "options": { - "caseSensitive": true, - "leftValue": "", - "typeValidation": "strict" - }, - "conditions": [ - { - "leftValue": "={{ $json.allowed }}", - "rightValue": true, - "operator": { - "type": "boolean", - "operation": "equals" - } - } - ], - "combinator": "and" - }, - "renameOutput": true, - "outputKey": "allowed" + "value1": "={{ $json.allowed }}", + "value2": true } ] - }, - "options": { - "fallbackOutput": "extra", - "allMatchingOutputs": false } }, "id": "risk-check-condition", "name": "Risk Check Passed?", - "type": "n8n-nodes-base.switch", - "typeVersion": 3, + "type": "n8n-nodes-base.if", + "typeVersion": 1, "position": [850, 300] }, { @@ -130,41 +108,19 @@ }, { "parameters": { - "rules": { - "values": [ + "conditions": { + "boolean": [ { - "conditions": { - "options": { - "caseSensitive": true, - "leftValue": "", - "typeValidation": "strict" - }, - "conditions": [ - { - "leftValue": "={{ $json.success }}", - "rightValue": true, - "operator": { - "type": "boolean", - "operation": "equals" - } - } - ], - "combinator": "and" - }, - "renameOutput": true, - "outputKey": "success" + "value1": "={{ $json.success }}", + "value2": true } ] - }, - "options": { - "fallbackOutput": "extra", - "allMatchingOutputs": false } }, "id": "trade-success-condition", "name": "Trade Executed Successfully?", - "type": "n8n-nodes-base.switch", - "typeVersion": 3, + "type": "n8n-nodes-base.if", + "typeVersion": 1, "position": [1250, 200] }, {