From e3dca830b72165081adec622a47e316ead80ab02 Mon Sep 17 00:00:00 2001 From: Adrian Flores Cortes Date: Wed, 4 Feb 2026 11:28:45 -0600 Subject: [PATCH] [GAP-001] fix: Add explicit varchar type to KpiConfig.category column TypeORM requires explicit type annotation for union type columns. Without it, TypeORM inferred 'Object' which is not a valid PostgreSQL type. Co-Authored-By: Claude Opus 4.5 --- src/modules/reports/entities/kpi-config.entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/reports/entities/kpi-config.entity.ts b/src/modules/reports/entities/kpi-config.entity.ts index a397993..e070658 100644 --- a/src/modules/reports/entities/kpi-config.entity.ts +++ b/src/modules/reports/entities/kpi-config.entity.ts @@ -59,7 +59,7 @@ export class KpiConfig { description?: string; // Clasificacion - @Column({ length: 50 }) + @Column({ type: 'varchar', length: 50 }) category!: KpiCategory; @Column({ length: 50 })