From 43f525a89cd5f795fa91572d2e3d00027b5733e4 Mon Sep 17 00:00:00 2001 From: Lucas Berger Date: Sun, 8 Feb 2026 15:33:44 -0500 Subject: [PATCH] fix(10.2-04): wire correlation ID generators and remove orphan nodes - Renamed connection keys from node IDs to node names (Generate Correlation ID, Generate Callback Correlation ID) - Rewired IF User Authenticated -> Generate Correlation ID -> Keyword Router - Rewired IF Callback Authenticated -> Generate Callback Correlation ID -> Parse Callback Data - Removed 2 orphan nodes (Delete Batch Confirm Message, Send Text Update Started) - Removed ghost connection key (code-log-error) - Node count reduced from 170 to 168 --- n8n-workflow.json | 64 ++++------------------------------------------- 1 file changed, 5 insertions(+), 59 deletions(-) diff --git a/n8n-workflow.json b/n8n-workflow.json index 61f352e..c2efbc6 100644 --- a/n8n-workflow.json +++ b/n8n-workflow.json @@ -1349,30 +1349,6 @@ } } }, - { - "parameters": { - "method": "POST", - "url": "=https://api.telegram.org/bot{{ $env.TELEGRAM_BOT_TOKEN }}/deleteMessage", - "sendBody": true, - "specifyBody": "json", - "jsonBody": "={{ JSON.stringify({ chat_id: $('Format Batch Result').item.json.chatId, message_id: $('Format Batch Result').item.json.messageId }) }}", - "options": {} - }, - "id": "http-delete-batch-confirm-msg", - "name": "Delete Batch Confirm Message", - "type": "n8n-nodes-base.httpRequest", - "typeVersion": 4.2, - "position": [ - 2660, - 800 - ], - "credentials": { - "telegramApi": { - "id": "I0xTTiASl7C1NZhJ", - "name": "Telegram account" - } - } - }, { "parameters": { "jsCode": "// Parse update command from message\nconst text = $json.message.text.toLowerCase().trim();\nconst chatId = $json.message.chat.id;\nconst messageId = $json.message.message_id;\n\n// Match update pattern: update followed by container name\nconst match = text.match(/^update\\s+(.+)$/i);\n\nif (!match) {\n return {\n json: {\n error: true,\n errorMessage: 'Invalid update format. Use: update ',\n chatId: chatId\n }\n };\n}\n\nreturn {\n json: {\n containerQuery: match[1].trim(),\n chatId: chatId,\n messageId: messageId\n }\n};" @@ -3122,31 +3098,6 @@ 1200 ] }, - { - "parameters": { - "resource": "message", - "operation": "sendMessage", - "chatId": "={{ $('Check Update Match Count').item.json.chatId }}", - "text": "=Updating {{ $('Check Update Match Count').item.json.matches[0].Name }}...", - "additionalFields": { - "parse_mode": "HTML" - } - }, - "id": "telegram-text-update-started", - "name": "Send Text Update Started", - "type": "n8n-nodes-base.telegram", - "typeVersion": 1.2, - "position": [ - 1780, - 1400 - ], - "credentials": { - "telegramApi": { - "id": "I0xTTiASl7C1NZhJ", - "name": "Telegram account" - } - } - }, { "parameters": { "source": "database", @@ -4875,7 +4826,7 @@ "main": [ [ { - "node": "Keyword Router", + "node": "Generate Correlation ID", "type": "main", "index": 0 } @@ -4886,7 +4837,7 @@ "main": [ [ { - "node": "Parse Callback Data", + "node": "Generate Callback Correlation ID", "type": "main", "index": 0 } @@ -6696,7 +6647,7 @@ ] ] }, - "code-generate-correlation-id": { + "Generate Correlation ID": { "main": [ [ { @@ -6707,7 +6658,7 @@ ] ] }, - "code-generate-callback-correlation-id": { + "Generate Callback Correlation ID": { "main": [ [ { @@ -6717,11 +6668,6 @@ } ] ] - }, - "code-log-error": { - "main": [ - [] - ] } }, "pinData": {}, @@ -6732,4 +6678,4 @@ "tags": [], "triggerCount": 1, "active": false -} +} \ No newline at end of file