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:
+4
-6
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user