fix(plugins/community/stock): update X-RapidAPI-Host to yh-finance.p.rapidapi.com (#1060)

This commit is contained in:
Bill Chan authored and GitHub committed 2022-05-19 22:15:02 -04:00
1 parent c845f1233a
commit 0e80df951b
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
/**Mocked data */
export default function({faker, url, options, login = faker.internet.userName()}) {
//Wakatime api
if (/^https:..apidojo-yahoo-finance-v1.p.rapidapi.com.stock.v2.*$/.test(url)) {
if (/^https:..yh-finance.p.rapidapi.com.stock.v2.*$/.test(url)) {
//Get company profile
if (/get-profile/.test(url)) {
console.debug(`metrics/compute/mocks > mocking yahoo finance api result > ${url}`)