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

This commit is contained in:
Bill Chan
2022-05-20 10:15:02 +08:00
committed by GitHub
parent c845f1233a
commit 0e80df951b
2 changed files with 3 additions and 3 deletions

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}`)