Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Task/remove deprecated platforms from info service (#6137)
Thomas Kaulaa41cb404b24
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f91e423fe8..5bbf0c8d47 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+## Unreleased++### Changed++- Removed the deprecated platforms from the info service+## 2.230.0 - 2026-01-14### Addeddiff --git a/apps/api/src/app/endpoints/platforms/platforms.controller.ts b/apps/api/src/app/endpoints/platforms/platforms.controller.tsindex 46303a3f88..92ba772971 100644--- a/apps/api/src/app/endpoints/platforms/platforms.controller.ts+++ b/apps/api/src/app/endpoints/platforms/platforms.controller.ts@@ -15,7 +15,9 @@ export class PlatformsController {@HasPermission(permissions.readPlatforms)@UseGuards(AuthGuard('jwt'), HasPermissionGuard)public async getPlatforms(): Promise<PlatformsResponse> {- const platforms = await this.platformService.getPlatforms();+ const platforms = await this.platformService.getPlatforms({+ orderBy: { name: 'asc' }+ });return { platforms };}diff --git a/apps/api/src/app/info/info.service.ts b/apps/api/src/app/info/info.service.tsindex c5152c1a24..9b4a4d5977 100644--- a/apps/api/src/app/info/info.service.ts+++ b/apps/api/src/app/info/info.service.ts@@ -1,4 +1,3 @@-import { PlatformService } from '@ghostfolio/api/app/platform/platform.service';import { RedisCacheService } from '@ghostfolio/api/app/redis-cache/redis-cache.service';import { SubscriptionService } from '@ghostfolio/api/app/subscription/subscription.service';import { UserService } from '@ghostfolio/api/app/user/user.service';@@ -38,7 +37,6 @@ export class InfoService {private readonly configurationService: ConfigurationService,private readonly exchangeRateDataService: ExchangeRateDataService,private readonly jwtService: JwtService,- private readonly platformService: PlatformService,private readonly propertyService: PropertyService,private readonly redisCacheService: RedisCacheService,private readonly subscriptionService: SubscriptionService,@@ -103,16 +101,12 @@ export class InfoService {benchmarks,demoAuthToken,isUserSignupEnabled,- platforms,statistics,subscriptionOffer] = await Promise.all([this.benchmarkService.getBenchmarkAssetProfiles(),this.getDemoAuthToken(),this.propertyService.isUserSignupEnabled(),- this.platformService.getPlatforms({- orderBy: { name: 'asc' }- }),this.getStatistics(),this.subscriptionService.getSubscriptionOffer({ key: 'default' })]);@@ -127,7 +121,6 @@ export class InfoService {demoAuthToken,globalPermissions,isReadOnlyMode,- platforms,statistics,subscriptionOffer,baseCurrency: DEFAULT_CURRENCY,diff --git a/libs/common/src/lib/interfaces/info-item.interface.ts b/libs/common/src/lib/interfaces/info-item.interface.tsindex 119a94a7c1..01897c0664 100644--- a/libs/common/src/lib/interfaces/info-item.interface.ts+++ b/libs/common/src/lib/interfaces/info-item.interface.ts@@ -1,4 +1,4 @@-import { Platform, SymbolProfile } from '@prisma/client';+import { SymbolProfile } from '@prisma/client';import { Statistics } from './statistics.interface';import { SubscriptionOffer } from './subscription-offer.interface';@@ -13,10 +13,6 @@ export interface InfoItem {globalPermissions: string[];isDataGatheringEnabled?: string;isReadOnlyMode?: boolean;-- /** @deprecated */- platforms: Platform[];-statistics: Statistics;subscriptionOffer?: SubscriptionOffer;}