2023-04-23 12:02:01 +02:00
|
|
|
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.service';
|
2021-04-13 21:53:58 +02:00
|
|
|
import { Controller } from '@nestjs/common';
|
|
|
|
|
|
|
|
@Controller()
|
|
|
|
export class AppController {
|
2022-08-04 13:36:32 +02:00
|
|
|
public constructor(
|
2022-08-08 19:25:38 +02:00
|
|
|
private readonly exchangeRateDataService: ExchangeRateDataService
|
2022-08-04 13:36:32 +02:00
|
|
|
) {
|
|
|
|
this.initialize();
|
|
|
|
}
|
|
|
|
|
|
|
|
private async initialize() {
|
|
|
|
try {
|
|
|
|
await this.exchangeRateDataService.initialize();
|
|
|
|
} catch {}
|
|
|
|
}
|
2021-04-13 21:53:58 +02:00
|
|
|
}
|