Browse Source

Fix currency of cash balance update on activity creation

pull/7616/head
vicbentu 2 weeks ago
committed by Thomas Kaul
parent
commit
10f5bffcad
  1. 4
      CHANGELOG.md
  2. 3
      apps/api/src/app/activities/activities.service.ts

4
CHANGELOG.md

@ -19,6 +19,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed the missing mapping for Czech Republic and Turkey in the data enhancer for asset profile data via _Yahoo Finance_ - Fixed the missing mapping for Czech Republic and Turkey in the data enhancer for asset profile data via _Yahoo Finance_
- Resolved an error when fetching dividends from _Yahoo Finance_ for date ranges without events - Resolved an error when fetching dividends from _Yahoo Finance_ for date ranges without events
### Fixed
- Fixed the currency of the cash balance update when creating an activity to use the activity's currency instead of the asset profile's currency
## 3.49.0 - 2026-08-12 ## 3.49.0 - 2026-08-12
### Changed ### Changed

3
apps/api/src/app/activities/activities.service.ts

@ -308,7 +308,8 @@ export class ActivitiesService {
accountId, accountId,
userId, userId,
amount: amount.toNumber(), amount: amount.toNumber(),
currency: data.SymbolProfile.connectOrCreate.create.currency, currency:
data.currency ?? data.SymbolProfile.connectOrCreate.create.currency,
date: data.date as Date date: data.date as Date
}); });
} }

Loading…
Cancel
Save