Browse Source

Clean up

pull/2808/head
Thomas Kaul 2 years ago
parent
commit
5eeaae22bb
  1. 4
      apps/api/src/services/data-gathering/data-gathering.service.ts

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

@ -15,7 +15,6 @@ import {
import { import {
DATE_FORMAT, DATE_FORMAT,
getAssetProfileIdentifier, getAssetProfileIdentifier,
getYesterday,
resetHours resetHours
} from '@ghostfolio/common/helper'; } from '@ghostfolio/common/helper';
import { BenchmarkProperty, UniqueAsset } from '@ghostfolio/common/interfaces'; import { BenchmarkProperty, UniqueAsset } from '@ghostfolio/common/interfaces';
@ -97,8 +96,7 @@ export class DataGatheringService {
date date
); );
const marketPrice = const marketPrice =
historicalData[symbol]?.[format(getYesterday(), DATE_FORMAT)] historicalData[symbol][format(date, DATE_FORMAT)].marketPrice;
.marketPrice;
if (marketPrice) { if (marketPrice) {
return await this.prismaService.marketData.upsert({ return await this.prismaService.marketData.upsert({

Loading…
Cancel
Save