Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/validation of valuables (#6372)

Thomas Kaul3eb9d53220dd
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ecd2ce5c8f..34aff43e19 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
+- Fixed a validation issue for valuables used in the create and import activity logic
- Fixed the page size for presets in the historical market data table of the admin control panel
## 2.241.0 - 2026-02-21
diff --git a/apps/api/src/services/data-provider/data-provider.service.ts b/apps/api/src/services/data-provider/data-provider.service.ts
index eb9816c673..8ee8761c09 100644
--- a/apps/api/src/services/data-provider/data-provider.service.ts
+++ b/apps/api/src/services/data-provider/data-provider.service.ts
@@ -244,11 +244,15 @@ export class DataProviderService implements OnModuleInit {
});
if (!assetProfiles[assetProfileIdentifier]) {
- if (['FEE', 'INTEREST', 'LIABILITY'].includes(type)) {
+ if (
+ (dataSource === DataSource.MANUAL && type === 'BUY') ||
+ ['FEE', 'INTEREST', 'LIABILITY'].includes(type)
+ ) {
const assetProfileInImport = assetProfilesWithMarketDataDto?.find(
- (profile) => {
+ (assetProfile) => {
return (
- profile.dataSource === dataSource && profile.symbol === symbol
+ assetProfile.dataSource === dataSource &&
+ assetProfile.symbol === symbol
);
}
);
@@ -257,7 +261,7 @@ export class DataProviderService implements OnModuleInit {
currency,
dataSource,
symbol,
- name: assetProfileInImport?.name
+ name: assetProfileInImport?.name ?? symbol
};
continue;