From a9e22c3e8f180fd8ef2e29e27eccdceb7e9bda7a Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Wed, 2 Jul 2025 07:53:05 +0200 Subject: [PATCH] Suppress yahooSurvey notice --- .../data-enhancer/yahoo-finance/yahoo-finance.service.ts | 4 +++- .../data-provider/yahoo-finance/yahoo-finance.service.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts b/apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts index 94a466742..8b76ae86b 100644 --- a/apps/api/src/services/data-provider/data-enhancer/yahoo-finance/yahoo-finance.service.ts +++ b/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() export class YahooFinanceDataEnhancerService implements DataEnhancerInterface { - private readonly yahooFinance = new YahooFinance(); + private readonly yahooFinance = new YahooFinance({ + suppressNotices: ['yahooSurvey'] + }); public constructor( private readonly cryptocurrencyService: CryptocurrencyService diff --git a/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts b/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts index 06e4674fb..eb6f85d73 100644 --- a/apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts +++ b/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() export class YahooFinanceService implements DataProviderInterface { - private readonly yahooFinance = new YahooFinance(); + private readonly yahooFinance = new YahooFinance({ + suppressNotices: ['yahooSurvey'] + }); public constructor( private readonly cryptocurrencyService: CryptocurrencyService,