Browse Source

Refactoring

pull/5858/head
Thomas Kaul 2 months ago
parent
commit
0ebf23ea2e
  1. 4
      apps/api/src/services/market-data/market-data.service.ts

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

@ -147,8 +147,8 @@ export class MarketDataService {
let minTime = Infinity;
let maxTime = -Infinity;
for (const item of data) {
const time = (item.date as Date).getTime();
for (const { date } of data) {
const time = (date as Date).getTime();
if (time < minTime) {
minTime = time;

Loading…
Cancel
Save