From 5ddd34a5c9a69c981bb71bdf032ce601d13e9c7f Mon Sep 17 00:00:00 2001 From: Tyler Myracle Date: Sun, 21 Jan 2024 21:23:10 -0600 Subject: [PATCH] fix sql type cast issue --- libs/server/features/src/account/insight.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/server/features/src/account/insight.service.ts b/libs/server/features/src/account/insight.service.ts index 0e6f8d62..cd3e27da 100644 --- a/libs/server/features/src/account/insight.service.ts +++ b/libs/server/features/src/account/insight.service.ts @@ -814,7 +814,7 @@ export class InsightService implements IInsightService { UNION ALL -- investment accounts SELECT - s.asset_class AS "asset_type", + s.asset_class::text AS "asset_type", SUM(h.value) AS "amount" FROM holdings_enriched h