|
@ -316,9 +316,11 @@ export class AdminService { |
|
|
const countriesCount = countries |
|
|
const countriesCount = countries |
|
|
? Object.keys(countries).length |
|
|
? Object.keys(countries).length |
|
|
: 0; |
|
|
: 0; |
|
|
|
|
|
|
|
|
const lastMarketPrice = lastMarketPriceMap.get( |
|
|
const lastMarketPrice = lastMarketPriceMap.get( |
|
|
getAssetProfileIdentifier({ dataSource, symbol }) |
|
|
getAssetProfileIdentifier({ dataSource, symbol }) |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
const marketDataItemCount = |
|
|
const marketDataItemCount = |
|
|
marketDataItems.find((marketDataItem) => { |
|
|
marketDataItems.find((marketDataItem) => { |
|
|
return ( |
|
|
return ( |
|
@ -326,6 +328,7 @@ export class AdminService { |
|
|
marketDataItem.symbol === symbol |
|
|
marketDataItem.symbol === symbol |
|
|
); |
|
|
); |
|
|
})?._count ?? 0; |
|
|
})?._count ?? 0; |
|
|
|
|
|
|
|
|
const sectorsCount = sectors ? Object.keys(sectors).length : 0; |
|
|
const sectorsCount = sectors ? Object.keys(sectors).length : 0; |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
@ -581,6 +584,7 @@ export class AdminService { |
|
|
]); |
|
|
]); |
|
|
|
|
|
|
|
|
const lastMarketPriceMap = new Map<string, number>(); |
|
|
const lastMarketPriceMap = new Map<string, number>(); |
|
|
|
|
|
|
|
|
for (const { dataSource, marketPrice, symbol } of lastMarketPrices) { |
|
|
for (const { dataSource, marketPrice, symbol } of lastMarketPrices) { |
|
|
lastMarketPriceMap.set( |
|
|
lastMarketPriceMap.set( |
|
|
getAssetProfileIdentifier({ dataSource, symbol }), |
|
|
getAssetProfileIdentifier({ dataSource, symbol }), |
|
|