Tobias Kugel
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
apps/api/src/app/portfolio/current-rate.service.ts
|
@ -2,7 +2,6 @@ import { OrderService } from '@ghostfolio/api/app/order/order.service'; |
|
|
import { LogPerformance } from '@ghostfolio/api/interceptors/performance-logging/performance-logging.interceptor'; |
|
|
import { LogPerformance } from '@ghostfolio/api/interceptors/performance-logging/performance-logging.interceptor'; |
|
|
import { DataProviderService } from '@ghostfolio/api/services/data-provider/data-provider.service'; |
|
|
import { DataProviderService } from '@ghostfolio/api/services/data-provider/data-provider.service'; |
|
|
import { MarketDataService } from '@ghostfolio/api/services/market-data/market-data.service'; |
|
|
import { MarketDataService } from '@ghostfolio/api/services/market-data/market-data.service'; |
|
|
import { resetHours } from '@ghostfolio/common/helper'; |
|
|
|
|
|
import { |
|
|
import { |
|
|
AssetProfileIdentifier, |
|
|
AssetProfileIdentifier, |
|
|
DataProviderInfo, |
|
|
DataProviderInfo, |
|
@ -44,7 +43,7 @@ export class CurrentRateService { |
|
|
(!dateQuery.in || this.containsToday(dateQuery.in)); |
|
|
(!dateQuery.in || this.containsToday(dateQuery.in)); |
|
|
|
|
|
|
|
|
const quoteErrors: ResponseError['errors'] = []; |
|
|
const quoteErrors: ResponseError['errors'] = []; |
|
|
const today = resetHours(new Date()); |
|
|
const today = new Date(); |
|
|
const values: GetValueObject[] = []; |
|
|
const values: GetValueObject[] = []; |
|
|
|
|
|
|
|
|
if (includesToday) { |
|
|
if (includesToday) { |
|
|