Browse Source

Bugfix/validation of valuables (#6372)

* Fix validation of valuables

* Update changelog
pull/6375/head
Thomas Kaul 1 week ago
committed by GitHub
parent
commit
3eb9d53220
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 12
      apps/api/src/services/data-provider/data-provider.service.ts

1
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

12
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;

Loading…
Cancel
Save