mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
758 B
21 lines
758 B
import { DataEnhancerService } from '@ghostfolio/api/services/data-provider/data-enhancer/data-enhancer.service';
|
|
import { DataProviderService } from '@ghostfolio/api/services/data-provider/data-provider.service';
|
|
|
|
import { Injectable } from '@nestjs/common';
|
|
import { DataSource } from '@prisma/client';
|
|
|
|
@Injectable()
|
|
export class HealthService {
|
|
public constructor(
|
|
private readonly dataEnhancerService: DataEnhancerService,
|
|
private readonly dataProviderService: DataProviderService
|
|
) {}
|
|
|
|
public async hasResponseFromDataEnhancer(aName: string) {
|
|
return this.dataEnhancerService.enhance(aName);
|
|
}
|
|
|
|
public async hasResponseFromDataProvider(aDataSource: DataSource) {
|
|
return this.dataProviderService.checkQuote(aDataSource);
|
|
}
|
|
}
|
|
|