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

Loading…
Cancel
Save