fix(04): fix Route Update Type conversion error

Removed empty leftValue from options and changed condition check from
object notEmpty to string notEmpty using optional chaining on specific
properties (message?.text, callback_query?.id).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lucas Berger
2026-01-30 22:05:34 -05:00
parent 87c7bf75e5
commit a08b8dba6b
+4 -6
View File
@@ -32,16 +32,15 @@
"conditions": { "conditions": {
"options": { "options": {
"caseSensitive": true, "caseSensitive": true,
"leftValue": "",
"typeValidation": "loose" "typeValidation": "loose"
}, },
"conditions": [ "conditions": [
{ {
"id": "has-message", "id": "has-message",
"leftValue": "={{ $json.message }}", "leftValue": "={{ $json.message?.text }}",
"rightValue": "", "rightValue": "",
"operator": { "operator": {
"type": "object", "type": "string",
"operation": "notEmpty" "operation": "notEmpty"
} }
} }
@@ -56,16 +55,15 @@
"conditions": { "conditions": {
"options": { "options": {
"caseSensitive": true, "caseSensitive": true,
"leftValue": "",
"typeValidation": "loose" "typeValidation": "loose"
}, },
"conditions": [ "conditions": [
{ {
"id": "has-callback", "id": "has-callback",
"leftValue": "={{ $json.callback_query }}", "leftValue": "={{ $json.callback_query?.id }}",
"rightValue": "", "rightValue": "",
"operator": { "operator": {
"type": "object", "type": "string",
"operation": "notEmpty" "operation": "notEmpty"
} }
} }