Browse Source
Merge pull request #124 from dandevaud/feature/Fix-InvalidNumber-on-data-gathering-job
Fix exchange rate gathering job
pull/5027/head
dandevaud
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
apps/api/src/services/data-provider/data-provider.service.ts
|
|
@ -690,7 +690,9 @@ export class DataProviderService { |
|
|
|
|
|
|
|
for (const date in rootData) { |
|
|
|
data[date] = { |
|
|
|
marketPrice: new Big(factor).mul(rootData[date].marketPrice).toNumber() |
|
|
|
marketPrice: rootData[date].marketPrice |
|
|
|
? new Big(factor).mul(rootData[date].marketPrice).toNumber() |
|
|
|
: null |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|