Browse Source

Suppress yahooSurvey notice

pull/5072/head
Thomas Kaul 2 months ago
parent
commit
a9e22c3e8f
  1. 4
      apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts
  2. 4
      apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts

4
apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts

@ -23,7 +23,9 @@ import type { Price } from 'yahoo-finance2/esm/src/modules/quoteSummary-iface';
@Injectable() @Injectable()
export class YahooFinanceDataEnhancerService implements DataEnhancerInterface { export class YahooFinanceDataEnhancerService implements DataEnhancerInterface {
private readonly yahooFinance = new YahooFinance(); private readonly yahooFinance = new YahooFinance({
suppressNotices: ['yahooSurvey']
});
public constructor( public constructor(
private readonly cryptocurrencyService: CryptocurrencyService private readonly cryptocurrencyService: CryptocurrencyService

4
apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts

@ -38,7 +38,9 @@ import { SearchQuoteNonYahoo } from 'yahoo-finance2/esm/src/modules/search';
@Injectable() @Injectable()
export class YahooFinanceService implements DataProviderInterface { export class YahooFinanceService implements DataProviderInterface {
private readonly yahooFinance = new YahooFinance(); private readonly yahooFinance = new YahooFinance({
suppressNotices: ['yahooSurvey']
});
public constructor( public constructor(
private readonly cryptocurrencyService: CryptocurrencyService, private readonly cryptocurrencyService: CryptocurrencyService,

Loading…
Cancel
Save