Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/fix query to get asset profiles matching data source and symbol (#2504)
Thomas Kaul74278073b32d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2c3f4dd800..33f52cbcc5 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Displayed the transfer cash balance button based on a permission- Fixed the biometric authentication+- Fixed the query to get asset profiles that match both the `dataSource` and `symbol` values## 2.11.0 - 2023-10-14diff --git a/apps/api/src/services/symbol-profile/symbol-profile.service.ts b/apps/api/src/services/symbol-profile/symbol-profile.service.tsindex 99244c352d..b861ccf8f6 100644--- a/apps/api/src/services/symbol-profile/symbol-profile.service.ts+++ b/apps/api/src/services/symbol-profile/symbol-profile.service.ts@@ -52,20 +52,12 @@ export class SymbolProfileService {SymbolProfileOverrides: true},where: {- AND: [- {- dataSource: {- in: aUniqueAssets.map(({ dataSource }) => {- return dataSource;- })- },- symbol: {- in: aUniqueAssets.map(({ symbol }) => {- return symbol;- })- }- }- ]+ OR: aUniqueAssets.map(({ dataSource, symbol }) => {+ return {+ dataSource,+ symbol+ };+ })}}).then((symbolProfiles) => this.getSymbols(symbolProfiles));