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:
Lucas Berger
2026-01-30 22:13:56 -05:00
parent f423f4ae4c
commit ada8800bff
+8 -12
View File
@@ -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"