Browse Source

Smaller fixes after merge

pull/5027/head
Dan 8 months ago
parent
commit
629f422b98
  1. 2
      apps/api/src/services/queues/data-gathering/data-gathering.processor.ts
  2. 9
      apps/client/src/app/components/header/header.component.ts
  3. 2
      apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts

2
apps/api/src/services/queues/data-gathering/data-gathering.processor.ts

@ -214,7 +214,7 @@ export class DataGatheringProcessor {
dates = dates.filter((d) => !marketData.some((md) => isEqual(md, d))); dates = dates.filter((d) => !marketData.some((md) => isEqual(md, d)));
const historicalData = await this.dataProviderService.getHistoricalRaw({ const historicalData = await this.dataProviderService.getHistoricalRaw({
dataGatheringItems: [{ dataSource, symbol }], assetProfileIdentifiers: [{ dataSource, symbol }],
from: firstEntry.date, from: firstEntry.date,
to: new Date() to: new Date()
}); });

9
apps/client/src/app/components/header/header.component.ts

@ -280,13 +280,4 @@ export class HeaderComponent implements OnChanges {
this.unsubscribeSubject.next(); this.unsubscribeSubject.next();
this.unsubscribeSubject.complete(); this.unsubscribeSubject.complete();
} }
private getFilterType(filterType: string) {
if (filterType === 'ACCOUNT') {
return 'accounts';
} else if (filterType === 'ASSET_CLASS') {
return 'assetClasses';
} else if (filterType === 'TAG') {
return 'tags';
}
}
} }

2
apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts

@ -11,7 +11,7 @@ import {
ToggleOption, ToggleOption,
User User
} from '@ghostfolio/common/interfaces'; } from '@ghostfolio/common/interfaces';
import { GroupBy } from '@ghostfolio/common/types'; import { DateRange, GroupBy } from '@ghostfolio/common/types';
import { translate } from '@ghostfolio/ui/i18n'; import { translate } from '@ghostfolio/ui/i18n';
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core'; import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';

Loading…
Cancel
Save