Browse Source
Bugfix/fix query to get asset profiles matching data source and symbol (#2504)
* Match dataSource and symbol
* Update changelog
pull/2505/head
Thomas Kaul
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
7 additions and
14 deletions
-
CHANGELOG.md
-
apps/api/src/services/symbol-profile/symbol-profile.service.ts
|
|
@ -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-14 |
|
|
|
|
|
|
|
|
|
@ -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)); |
|
|
|