Bugfix/fix query to get asset profiles matching data source and symbol (#2504)

* Match dataSource and symbol

* Update changelog
This commit is contained in:
Thomas Kaul
2023-10-17 20:36:01 +02:00
committed by GitHub
parent 0375b938a2
commit 74278073b3
2 changed files with 7 additions and 14 deletions

View File

@@ -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));