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
parent
commit
665adf5d5d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      apps/api/src/services/data-provider/data-provider.service.ts

4
apps/api/src/services/data-provider/data-provider.service.ts

@ -690,7 +690,9 @@ export class DataProviderService {
for (const date in rootData) { for (const date in rootData) {
data[date] = { data[date] = {
marketPrice: new Big(factor).mul(rootData[date].marketPrice).toNumber() marketPrice: rootData[date].marketPrice
? new Big(factor).mul(rootData[date].marketPrice).toNumber()
: null
}; };
} }

Loading…
Cancel
Save