From 1116cf488f073a576188bf81ba2317e44dc90a5e Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 2 Aug 2026 15:39:23 +0200 Subject: [PATCH] Refactoring --- .../endpoints/asset-profiles/asset-profiles.service.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/api/src/app/endpoints/asset-profiles/asset-profiles.service.ts b/apps/api/src/app/endpoints/asset-profiles/asset-profiles.service.ts index 776ed57e53..639fe6278a 100644 --- a/apps/api/src/app/endpoints/asset-profiles/asset-profiles.service.ts +++ b/apps/api/src/app/endpoints/asset-profiles/asset-profiles.service.ts @@ -25,7 +25,7 @@ import { MarketDataPreset } from '@ghostfolio/common/types'; import { Injectable, NotFoundException } from '@nestjs/common'; import { AssetClass, AssetSubClass, DataSource, Prisma } from '@prisma/client'; -import { groupBy, omit } from 'lodash'; +import { groupBy } from 'lodash'; @Injectable() export class AssetProfilesService { @@ -118,6 +118,7 @@ export class AssetProfilesService { return { marketData, + splits, assetProfile: assetProfile ?? { activitiesCount, currency, @@ -127,10 +128,7 @@ export class AssetProfilesService { assetClass: isCurrencyAssetProfile ? AssetClass.LIQUIDITY : undefined, assetSubClass: isCurrencyAssetProfile ? AssetSubClass.CASH : undefined, isActive: true - }, - splits: splits.map((split) => { - return omit(split, 'symbolProfile'); - }) + } }; }