fix(04): fix Check Logs Match Count type validation
Changed typeValidation from 'strict' to 'loose' and rightValue from strings to numbers to fix type mismatch error in Switch node conditions. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+8
-12
@@ -1850,14 +1850,13 @@
|
|||||||
"conditions": {
|
"conditions": {
|
||||||
"options": {
|
"options": {
|
||||||
"caseSensitive": true,
|
"caseSensitive": true,
|
||||||
"leftValue": "",
|
"typeValidation": "loose"
|
||||||
"typeValidation": "strict"
|
|
||||||
},
|
},
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"id": "count-negative",
|
"id": "count-negative",
|
||||||
"leftValue": "={{ $json.matchCount }}",
|
"leftValue": "={{ $json.matchCount }}",
|
||||||
"rightValue": "0",
|
"rightValue": 0,
|
||||||
"operator": {
|
"operator": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"operation": "lt"
|
"operation": "lt"
|
||||||
@@ -1873,14 +1872,13 @@
|
|||||||
"conditions": {
|
"conditions": {
|
||||||
"options": {
|
"options": {
|
||||||
"caseSensitive": true,
|
"caseSensitive": true,
|
||||||
"leftValue": "",
|
"typeValidation": "loose"
|
||||||
"typeValidation": "strict"
|
|
||||||
},
|
},
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"id": "count-zero",
|
"id": "count-zero",
|
||||||
"leftValue": "={{ $json.matchCount }}",
|
"leftValue": "={{ $json.matchCount }}",
|
||||||
"rightValue": "0",
|
"rightValue": 0,
|
||||||
"operator": {
|
"operator": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"operation": "equals"
|
"operation": "equals"
|
||||||
@@ -1896,14 +1894,13 @@
|
|||||||
"conditions": {
|
"conditions": {
|
||||||
"options": {
|
"options": {
|
||||||
"caseSensitive": true,
|
"caseSensitive": true,
|
||||||
"leftValue": "",
|
"typeValidation": "loose"
|
||||||
"typeValidation": "strict"
|
|
||||||
},
|
},
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"id": "count-one",
|
"id": "count-one",
|
||||||
"leftValue": "={{ $json.matchCount }}",
|
"leftValue": "={{ $json.matchCount }}",
|
||||||
"rightValue": "1",
|
"rightValue": 1,
|
||||||
"operator": {
|
"operator": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"operation": "equals"
|
"operation": "equals"
|
||||||
@@ -1919,14 +1916,13 @@
|
|||||||
"conditions": {
|
"conditions": {
|
||||||
"options": {
|
"options": {
|
||||||
"caseSensitive": true,
|
"caseSensitive": true,
|
||||||
"leftValue": "",
|
"typeValidation": "loose"
|
||||||
"typeValidation": "strict"
|
|
||||||
},
|
},
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"id": "count-many",
|
"id": "count-many",
|
||||||
"leftValue": "={{ $json.matchCount }}",
|
"leftValue": "={{ $json.matchCount }}",
|
||||||
"rightValue": "1",
|
"rightValue": 1,
|
||||||
"operator": {
|
"operator": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"operation": "gt"
|
"operation": "gt"
|
||||||
|
|||||||
Reference in New Issue
Block a user