Browse Source

Log error

pull/716/head
Thomas 3 years ago
parent
commit
f6af6523d4
  1. 6
      apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts

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

@ -25,7 +25,7 @@ import {
@Injectable() @Injectable()
export class YahooFinanceService implements DataProviderInterface { export class YahooFinanceService implements DataProviderInterface {
private yahooFinanceHostname = 'https://query1.finance.yahoo.com'; private readonly yahooFinanceHostname = 'https://query2.finance.yahoo.com';
public constructor( public constructor(
private readonly cryptocurrencyService: CryptocurrencyService private readonly cryptocurrencyService: CryptocurrencyService
@ -274,7 +274,9 @@ export class YahooFinanceService implements DataProviderInterface {
name: value.name name: value.name
}); });
} }
} catch {} } catch (error) {
Logger.error(error);
}
return { items }; return { items };
} }

Loading…
Cancel
Save