Browse Source

Block Syntax

pull/1924/head
Oleg Shvartsman 2 years ago
parent
commit
eb952aa79b
  1. 12
      apps/api/src/app/portfolio/current-rate.service.ts

12
apps/api/src/app/portfolio/current-rate.service.ts

@ -70,12 +70,12 @@ export class CurrentRateService {
symbol: dataGatheringItem.symbol symbol: dataGatheringItem.symbol
}); });
} }
if (result.length == 1) { }
// getValues result of size 1 ("today only") means historical data is not if (result.length == 1) {
// synchronized. Queue up sync so that a refresh would pull more historical data. // getValues result of size 1 ("today only") means historical data is not
this.dataGatheringService.gather7Days(); // synchronized. Queue up sync so that a refresh would pull more historical data.
} this.dataGatheringService.gather7Days();
}
return result; return result;
}) })
); );

Loading…
Cancel
Save