ghostfolio/apps/api/src/app/app.controller.ts

18 lines
446 B
TypeScript
Raw Normal View History

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 {
public constructor(
private readonly exchangeRateDataService: ExchangeRateDataService
) {
this.initialize();
}
private async initialize() {
try {
await this.exchangeRateDataService.initialize();
} catch {}
}
2021-04-13 21:53:58 +02:00
}