From d877997539a9622939b7b56bbc70dfce90a7104b Mon Sep 17 00:00:00 2001 From: Charlie Kolb Date: Wed, 15 Oct 2025 14:11:46 +0200 Subject: [PATCH] remove extra fixes --- .../data-table/data-table-rows.repository.ts | 2 +- .../modules/data-table/data-table.service.ts | 20 +------------------ 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/packages/cli/src/modules/data-table/data-table-rows.repository.ts b/packages/cli/src/modules/data-table/data-table-rows.repository.ts index 4401a873c79..0174f86e697 100644 --- a/packages/cli/src/modules/data-table/data-table-rows.repository.ts +++ b/packages/cli/src/modules/data-table/data-table-rows.repository.ts @@ -59,7 +59,7 @@ function resolvePath( return `(${base})::timestamp`; } if (typeof value === 'boolean') { - return `CAST(${base})::boolean`; + return `(${base})::boolean`; } // by converting to text by default we end up with `true` for an equals NULL check diff --git a/packages/cli/src/modules/data-table/data-table.service.ts b/packages/cli/src/modules/data-table/data-table.service.ts index d12f113a95f..3180c822061 100644 --- a/packages/cli/src/modules/data-table/data-table.service.ts +++ b/packages/cli/src/modules/data-table/data-table.service.ts @@ -26,7 +26,7 @@ import type { DataTableColumnType, DataTableRowReturnWithState, } from 'n8n-workflow'; -import { DATA_TABLE_SYSTEM_COLUMN_TYPE_MAP, UserError, validateFieldType } from 'n8n-workflow'; +import { DATA_TABLE_SYSTEM_COLUMN_TYPE_MAP, validateFieldType } from 'n8n-workflow'; import { RoleService } from '@/services/role.service'; @@ -518,24 +518,6 @@ export class DataTableService { } } - if (columnType === 'json') { - // json accepts objects or strings containing objects as input - // but expects values with a path for output/get/read operations - if (typeof cell === 'string') { - try { - JSON.parse(cell); - return cell; - } catch (e) { - throw new UserError(`Failed to parse string input '${cell}' as object for json column`); - } - } else if (typeof cell !== 'object') { - throw new UserError( - `Unexpected non-object input '${cell}' of type ${typeof cell} for json column`, - ); - } - return JSON.stringify(cell); - } - return validationResult.newValue as DataTableColumnJsType; }